workspace

The workspace is an organizational object that groups namespaces, which helps you monitor and manage your Kubernetes namespaces within and across clusters.

Usage

tanzu mission-control workspace [command]

Commands

  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.

Usage

tanzu mission-control workspace create [flags]

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")

Example

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.

Usage

  tanzu mission-control workspace delete <workspace-name> [flags]

Example

To delete a workspace named test-ws:

tanzu mission-control workspace delete test-ws

get

Get a workspace

Usage

tanzu mission-control workspace get <workspace-name> [flags]

Flags

-o, --output string   Output format (yaml | json) (default "yaml")

Example

To get the contents of the test-ws workspace in YAML format:

tanzu mission-control workspace get test-ws -o yaml

list

List workspaces.

Usage

  tanzu mission-control workspace list [flags]

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.

Usage

  tanzu mission-control workspace template [command]

Commands

  get         Get Template for workspace
  list        List Templates for workspace

update

Update (overwrite) a workspace.

Usage

  tanzu mission-control workspace update [flags]

Flags

  -f, --file string   resource file from which to update the workspace

Example

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.

check-circle-line exclamation-circle-line close-line
Scroll to top icon