This topic shows how to use some commonly used commands in the Tanzu Mission Control plug-ins.
All non-core commands in the tanzu
CLI require that you specify the context for the command. For example, the following command uses the cluster
plug-in from your context in the mission-control
target.
tanzu mission-control cluster list
Before you can use the tanzu
command-line interface, make sure you have already downloaded, installed, and initialized the CLI binary, as described in Install and Configure the Tanzu CLI and Tanzu Mission Control Plug-ins.
tanzu context create --endpoint <my-endpoint>
For example:
tanzu context create --endpoint my-org.tmc.cloud.vmware.com
tanzu context list
tanzu context use my-new-context
tanzu context list
The output from this command shows that your new context is the active context, for example:
Target: kubernetes
NAME ISACTIVE ENDPOINT KUBECONFIGPATH KUBECONTEXT
Target: mission-control
NAME ISACTIVE ENDPOINT
my-new-context true my-org.tmc.cloud.vmware.com:443
tanzu plugin sync
tanzu plugin list
tanzu mission-control cluster list
tanzu mission-control workspace list
tanzu plugin install cluster --target mission-control
tanzu mission-control cluster create -f <config-file>
tanzu mission-control cluster create --template <template-name> -v <values-file>
Note: Creating a resource with a template requires the values file. A values file contains the input parameters in a key/value format. A list of inputs required by the template and the schema for the value are defined in the input section.
tanzu mission-control cluster template list
tanzu mission-control cluster template get <template-name>
Note: You can list the input fields accepted by a given template using the following command:
tanzu mission-control cluster template get <template-name> | grep field
tanzu mission-control cluster get <cluster-name> -m <management-cluster-name> -p <provisioner-name>
tanzu mission-control cluster kubeconfig get <cluster-name>
tanzu mission-control cluster admin-kubeconfig get <cluster-name> -m <mgmt-cluster-name> -p <provisioner-name>
tanzu mission-control plugin delete <plug-in-name>