Step #4: Log in with Kubernetes CLI Tools

Optimize AI and Data Science Workloads (VMware Tanzu) (Latest Version)

Use the following steps to log into the Supervisor Cluster and set the context.

Important

You will need the VM Console link located on the left navigation pane. DO NOT USE the vCenter web console!

  1. Save the IP address of the control plan node. This will be provided to your DevOps engineer and used in the next step.

    vmware-tanzu-014.png

  2. Save IP address of one of the Supervisor Cluster VM in vCenter e.g. “SupervisorControlPlaneVM (1)”.

    Copy
    Copied!
                

    kubectl vsphere login --server=<KUBERNETES-CONTROL-PLANE-IP-ADDRESS> --vsphere-username administrator@vsphere.local --insecure-skip-tls-verify --tanzu-kubernetes-cluster-namespace launchpad


  3. Enter the password for the vSphere administrator account.

  4. Run the command below to view a list of your Namespaces.

    Copy
    Copied!
                

    kubectl config get-contexts


  5. Run the command below to choose your default context.

    Copy
    Copied!
                

    kubectl config use-context <context>


  6. Use the commands below to see your cluster’s existing nodes and pods.

    Copy
    Copied!
                

    kubectl get nodes kubectl get pods -A


© Copyright 2022-2023, NVIDIA. Last updated on Apr 13, 2023.