Created
April 5, 2021 04:44
-
-
Save harivemula/d31bac8eec26f5d6db9d2001963375da to your computer and use it in GitHub Desktop.
Login to Supervisor cluster Nodes / Guest Cluster Nodes - vSphere with Tanzu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# *Supervisor Cluster* | |
# Login to vCenter server and run the below command to retrieve the Supervisor cluster IP and password | |
/usr/lib/vmware-wcp/decryptK8Pwd.py | |
# Use the username as 'root' and password provided by above command to login to Supervisor node(s). | |
# IP returned by above commmand is VIP of cluster api servers. | |
ssh root@<supervisor-node-ip> | |
### *Guest Clusters* | |
# If you would like to login to TKC (Guest Cluster nodes), | |
# - Run the below command in supervisor cluster node. | |
kubectl -n <Namespace of Supervisor cluster> get secrets <guest clustername>-ssh-password -o jsonpath={.data.ssh-passwordkey} | base64 -d | |
# - You do not need to login to Supervisor cluster node to get it.. instead use below steps | |
kubectl vsphere login --server=<Supervisor API-Server IP> -u <vSphere user@domain> --insecure-skip-tls-verify | |
kubectl -n <supervisorNS> get secrets <GuestClusterName>-ssh-password -o jsonpath={.data.ssh-passwordkey} | base64 -d | |
# Use the password returned from above command and use the username as 'vmware-system-user' with Cluster node ip to login. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment