You can monitor the status of provisioned Tanzu Kubernetes clusters using kubectl.
Procedure
- Authenticate with the Supervisor Cluster. See Connect to the Supervisor Cluster as a vCenter Single Sign-On User.
- Switch to the vSphere Namespace where the cluster is running.
kubectl config use-context SUPERVISOR-NAMESPACE
- View a list of the Tanzu Kubernetes clusters running in the namespace.
kubectl get tanzukubernetesclusters
This command returns the status of the cluster. For a description of the status fields, see Tanzu Kubernetes Cluster Lifecycle Status in kubectl. - 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>
- Run additional
kubectl
commands to view more details about the cluster. See Use Tanzu Kubernetes Cluster Operational Commands.