After the vSphere administrator provides you with the IP address of the Kubernetes control plane on the Supervisor, you can log in to the Supervisor and obtain the contexts to which you have access. In vSphere IaaS control plane, contexts correspond to the namespaces on the Supervisor.
Note: If you have an existing
kubeconfig file, it is appended with each cluster context. The
vSphere Plugin for kubectl respects the KUBECONFIG environment variable that
kubectl itself uses. Although not required, it can be useful to set this variable before running
kubectl vsphere login ...
so that the information is written to a new file, instead of being added to your current
kubeconfig
file.
Prerequisites
- Get your vCenter Single Sign-On credentials.
- Get the IP address of the Supervisor control plane.
- Get the name of the vSphere Namespace.
- Get confirmation that you have Edit permissions on the vSphere Namespace.
- Download and Install the Kubernetes CLI Tools for vSphere. See the Installing and Configuring vSphere IaaS Control Plane documentation.
- Verify that the certificate served by the Kubernetes control plane is trusted on your system, either by having the signing CA installed as a Trust Root or by adding the certificate as a Trust Root directly. See Configure Secure Login for vSphere IaaS Control Plane Clusters in the Installing and Configuring vSphere IaaS Control Plane documentation.