How-To: Use Radius workspaces
Categories:
Pre-requisites
How-to: Use workspaces to switch between environments
When you have multiple environments initialized for different purposes workspaces enable you to switch between different environments easily. You can create separate workspaces and switch between them as you are working through your deployment lifecycle.
Install the Radius control plane on kubernetes cluster
rad install kubernetesCreate a resource group named
mygroupusingrad group create:rad group create mygroupCreate an environment named
myenvironmentusingrad env create:rad env create myenvironmentCreate a workspace named
myworkspaceusingrad workspace create:rad workspace create kubernetes myworkspace --group mygroup --environment myenvironmentRadius writes the workspace details to your local configuration file (
~/.rad/config.yamlon Linux and macOS,%USERPROFILE%\.rad\config.yamlon Windows).Create another resource group named
yourgroupusingrad group create:rad group create yourgroupCreate an environment named
yourenvironmentusingrad env create:rad env create yourenvironmentCreate a workspace named
yourworkspaceusingrad workspace create:rad workspace create kubernetes yourworkspace --group yourgroup --environment yourenvironmentVerify your
config.yamlfile. It should show bothmyworkspaceandyourworkspaceworkspaces, with your environments:workspaces: default: yourworkspace items: yourworkspace: connection: context: mycluster kind: kubernetes environment: /planes/radius/local/resourcegroups/yourgroup /providers/applications.core/environments/yourenvironment scope: /planes/radius/local/resourceGroups/yourgroup myworkspace: connection: context: mycluster kind: kubernetes environment: /planes/radius/local/resourcegroups/mygroup /providers/applications.core/environments/myenvironment scope: /planes/radius/local/resourceGroups/mygroupYou can now deploy applications to both myworkspace and yourworkspace using
rad deploy, specifying the-wflag.
Feedback
Was this page helpful?
Glad to hear it! Please feel free to star our repo and join our Discord server to stay up to date with the project.
Sorry to hear that. If you would like to also contribute a suggestion visit and tell us how we can improve.