You can attach existing Kubernetes clusters to Tanzu Mission Control with a local image registry using the tmc
CLI.
Prerequisites
Make sure you have the appropriate permissions to add a cluster using the local image registry with the CLI.
- To add a cluster using the local image registry you must be associated with the Tanzu Mission Control role cluster.admin role.
Procedure
- ♦ The local image registry name must be passed to the CLI as shown below:
tmc cluster create --template attached --cluster-group default --name demo-cluster --image-registry test-registry tmc cluster attach --name demo-cluster --continue-bootstrap --kubeconfig /path/to/kubeconfig
Or use the following:tmc cluster attach --name=demo-cluster -m=attached -p=attached --image-registry=test-registry --kubeconfig=/path/to/kubeconfig