Accessing your new cluster

After you have provisioned a cluster in your cloud provider account using VMware Tanzu Mission Control, you can connect to the cluster and run commands against it using the Tanzu Mission Control CLI (tmc) and kubectl. Tanzu Mission Control provides a kubeconfig file to enable the connection.

The following provides the steps to access your newly provisioned cluster.

What to do first

Before you access your new cluster, ensure the following:

  1. You can log in to the Tanzu Mission Control console. See Getting access and launching Tanzu Mission Control.

  2. You have provisioned a cluster. See Provisioning a new EKS cluster.

  3. You have installed the Kubernetes command-line interface (kubectl). See kubectl in Kubernetes Documentation.

Before you attempt to connect to a newly provisioned cluster, make sure it is up and running. After the provisioning and creating process is complete, the status is updated to Ready and the type shows that it is a Provisioned cluster in your cloud provider account.

Access your cluster

Do the following to access your cluster:

  1. Click Clusters in the left navigation pane, and then search or sort to find the cluster you created.

  2. Click the cluster name to go to the cluster detail page.

  3. In the upper right corner, click Actions.

  4. Choose Access this cluster from the dropdown menu.

    Click Action, then click Access this cluster

  5. In the resulting popup modal, click Download KUBECONFIG file.

  6. Save the downloaded YAML file in a location that is accessible to kubectl.

    For example, in ~/.kube/config or in a location specified in the KUBECONFIG environment variable.

  7. Download and install the Tanzu Mission Control CLI (tmc) for your platform.

    1. In the left navigation pane of the Tanzu Mission Control console, click Automation center.
    2. On the Automation Center page, click , and Download CLI.
    3. Choose the environment where you want to use the CLI.
    4. After the download completes, move the tmc executable to an accessible bin directory. For example, ~/bin or %UserProfile%\bin.

      Make sure that the bin directory is accessible on your PATH.

  8. In a command window, run a kubectl command to initialize the configuration.

    For example, the following command retrieves a list of namespaces in your cluster.

    kubectl get namespaces

    Optionally, use the --kubeconfig flag to specify the location and name of your downloaded kubeconfig YAML file. The command looks something like this:

    kubectl --kubeconfig=/path/to/kubeconfig-my-provisioned-cluster.yaml get namespaces
    
    Note

    The path/file value that you pass to the --kubeconfig flag must be an absolute path.

  9. After you have connected kubectl to your cluster, click OK to close the dialog.
check-circle-line exclamation-circle-line close-line
Scroll to top icon