The workspace
is an organizational object that groups namespaces, which helps you monitor and manage your Kubernetes namespaces within and across clusters.
tanzu mission-control workspace [command]
create Create a workspace
delete Delete a workspace
get Get a workspace
list List workspaces
template Workspace template
update Update (overwrite) a workspace
create
Create a workspace.
tanzu mission-control workspace create [flags]
-v, --data-values-file string data values file to use
--dry-run create the data model only, do not apply to server
-f, --file string Resource file from which to create a workspace
-h, --help help for create
-t, --template string template to use (default "default")
To use the default template for creating a workspace and update values:
1) Create a YAML file (for example, ws_values.yaml
) with the fields to be changed like this:
Name: test-ws
Labels: env:staging
Description: Test workspace
2) Run the following command and provide the path to your YAML file:
tanzu mission-control workspace create --template default --data-values-file <path-to/ws_values.yaml>
delete
Delete a workspace.
tanzu mission-control workspace delete <workspace-name> [flags]
To delete a workspace named test-ws
:
tanzu mission-control workspace delete test-ws
get
Get a workspace
tanzu mission-control workspace get <workspace-name> [flags]
-o, --output string Output format (yaml | json) (default "yaml")
To get the contents of the test-ws
workspace in YAML format:
tanzu mission-control workspace get test-ws -o yaml
list
List workspaces.
tanzu mission-control workspace list [flags]
--max-size uint Number of records to return
--name string scope search to the specified name (default "*")
--offset uint Offset at which to start returning records
-o, --output string Output format (yaml|json)
template
Workspace template.
tanzu mission-control workspace template [command]
get Get Template for workspace
list List Templates for workspace
update
Update (overwrite) a workspace.
tanzu mission-control workspace update [flags]
-f, --file string resource file from which to update the workspace
To update a workspace:
Fetch the resource file using tanzu mission-control workspace get
.
Update the required fields in the resource file.
Then run tanzu mission-control workspace update
using the updated resource file.