To use kubectl and the tanzu
CLI with a managed cluster, download the generated configuration file and initialize the connection.
After you have attached or provisioned a new cluster using Tanzu Mission Control, you can connect to it with kubectl using the configuration file that Tanzu Mission Control generates for you.
In addition to provisioned and attached
Tanzu Kubernetes Grid clusters,
Tanzu Mission Control supports kubeconfig access to the following types of attached public cloud clusters:
- Amazon Elastic Kubernetes Service (EKS)
- Azure Kubernetes Service (AKS)
- Google Kubernetes Engine (GKE)
Prerequisites
This procedure assumes that you have a managed cluster, either attached or provisioned, and that you have already performed the following tasks:
- Install the Kubernetes command-line interface (kubectl).
- Open a browser window, and log in to the Tanzu Mission Control console.
- Open a command window, and log in with the
tanzu
CLI.