Home » VMware » 5V0-23.20 » Which command should be used by a developer to log in to the vSphere with Tanzu Supervisor Cluster?
Which command should be used by a developer to log in to the vSphere with Tanzu Supervisor Cluster?
A. vmwarectl login –server-<KUBERNETES-CONTROL-PLANE-IP-ADDRESS> –vsphere-username
<VCENTER-SSO-USER>
B. kubectl vsphere login –server=<KUBERNETES-CONTROL-PLANE-IP-ADDRESS> –vsphereusername
<vcENTER-SSO-USER>
C. vmwarectl vsphere login –server—<KUBERNETES-CONTROL-PLANE-IP-ADDRESS> –vsphereusername
<VCENTER-SSO-USER>
D. kubectl login –server=<KUBERNETES-CONTROL-PLANE-lP-ADDRESS> –vsphere-username
<VCENTER-SSO-USER>
Answer: B
Explanation:
Authenticating Using kubectl
In vSphere with Tanzu, authentication is performed using vCenter Single Sign-On. You run the command kubectl vsphere login to authenticate a user through vCenter Single Sign-On to Kubernetes clusters. kubectl vsphere login –server <kubernetes control plane> -u <username> The –insecure-skip-tls-verify flag is required if the certificate presented by the vSphere with Tanzu control plane is not trusted by the client machine. The control plane is signed by the vCenter Server VMware CA by default. You can replace the control plane certificate with a trusted certificate if needed. Alternatively, install the vCenter Server VMware CA root certificate into your client machine to remove the need for the –insecure-skip-tls-verify flag.