You can monitor the status of provisioned TKG clusters using kubectl.

Procedure

  1. Authenticate with the Supervisor.
  2. Switch to the vSphere Namespace where the cluster is running.
    kubectl config use-context SUPERVISOR-NAMESPACE
  3. View a list of the TKG clusters running in the namespace.
    kubectl get tanzukubernetesclusters
    This command returns the status of the cluster.
  4. View the details of the cluster.
    kubectl describe tanzukubernetescluster <cluster-name>
    The command returns the details of the cluster. In the Status section of the command output, you see detailed information about the cluster.
    ...
    Status:
      Addons:
        Cni:
          Name:    calico
          Status:  applied
        Csi:
          Name:    pvcsi
          Status:  applied
        Psp:
          Name:    defaultpsp
          Status:  applied
      Cloudprovider:
        Name:  vmware-guest-cluster
      Cluster API Status:
        API Endpoints:
          Host:  10.161.90.22
          Port:  6443
        Phase:   provisioned
      Node Status:
        test-tanzu-cluster-control-plane-0:                  ready
        test-tanzu-cluster-workers-0-749458f97c-97ljv:       ready
      Phase:                                                 running
      Vm Status:
        test-tanzu-cluster-control-plane-0:                  ready
        test-tanzu-cluster-workers-0-749458f97c-97ljv:       ready
    Events:                                                  <none>
    
  5. Run additional kubectl commands to view more details about the cluster. See Check TKG Cluster Operations Using Kubectl.