SSH login to supervisor node in Tanzu Kubernetes Grid
2023-01-174 min read
Introduction
We might need to access the supervisor node via ssh for some extreme troubleshooting or configuration need for Tanzu Kubernetes Grid as service configured in vSphere7 and above. This blog illustrates the node access process in simple steps.
Initial Setup
We assume that Tanzu Kubernetes Grid as service is configured in vSphere7.
Step summary
Login to vCenter
Fetch the private key
Access supervisor node via ssh
Login to vCenter
Need to get the FQDN or IP for the vCenter server. We would need to SSH as "root" user to the server.
Fetch private key
Since workload management is configured and supervisor cluster is configured in the current setup, so we can assume the private key would be stored securely in vCenter.
we can navigate and fetch the key as below :
Access supervisor node via ssh
Tanzu Kubernetes Grid configures the supervisor cluster with Photon OS based VMs. these VMs can be located in vCenter or fetched as kubernetes nodes for supervisor cluster.
The operator admin can ssh login as "root" user into the VM with node FQDN or IP.
NOTE: For ssh access to node, we would use the fetched private key from the vCenter
With above steps, admin user can login to the supervisor k8s node as root user and perform the required housekeeping or other operations check as required.