vSphere 7 onwards provides vSphere with Kubernetes (formerly Project Pacific). Natively it supports VMs and containers on vSphere. Tanzu Kubernetes Grid Service (TKGS) helps to run fully compliant and conformant Kubernetes with vSphere. vSphere Pod runs natively on vSphere whereas Tanzu Kubernetes Cluster (TKC) is a managed cluster by the Tanzu Kubernetes Grid Service, with the virtual machine objects deployed inside of a vSphere Namespace.
For many administrative operations, system or cloud administrator needs to login to SupervisorControlVM to do those tasks. This article describes a step-by-step process to login to SupervisorControlVM and do administrative tasks.
First step is to login to vCenter via SSH. Execute decryptK8Pwd.py script under /usr/lib/vmware-wcp/ directory. This will help us to obtain SupervisorControlVM Virtual IP (VIP) and login credential
* List APIs: "help api list"
* List Plugins: "help pi list"
* Launch BASH: "shell"
Command> shell
Shell access is granted to root
[ ~ ]# cd /usr/lib/vmware-wcp/
[ /usr/lib/vmware-wcp ]# ./decryptK8Pwd.py
Read key from file
Connected to PSQL
FIPS mode initialized
Password:
Last login: Tue Oct 4 05:35:57 2022 from 10.10.100.102
root@420f007a3156d05baab95084b457eb4c [ ~ ]#
I am successfully able to log in to SupervisorControlVM and do administrative tasks now.
root@420f007a3156d05baab95084b457eb4c [ ~ ]# kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-855c5b4cfd-ftfx9 1/1 Running 0 3d2h
coredns-855c5b4cfd-lfcjf 1/1 Running 0 3d2h
coredns-855c5b4cfd-vzj42 1/1 Running 0 3d2h
1 comment:
Thanks for sharing. keep writing good things Sir. Take Love. Ziad
Post a Comment