vCenter Single Sign-On users can use the Kubernetes CLI Tools for vSphere to connect to and interact with TKG Service clusters.
About the Kubernetes CLI Tools for vSphere
The Kubernetes CLI Tools for vSphere download package (vsphere-plugin.zip) includes two executables: kubectl and the vSphere Plugin for kubectl.
The
kubectl CLI has a pluggable architecture. The
vSphere Plugin for kubectl extends the commands available to
kubectl so that you connect to the
Supervisor and to TKG clusters using
vCenter Single Sign-On.
Note: The
vSphere IaaS control plane provides binaries for x86/64 processors.
Prerequisite: vSphere Namespace Is Created
The
Kubernetes CLI Tools for vSphere are available for download from the
vSphere IaaS control plane DevOps page.
Figure 1. vSphere DevOps Page
Install the Kubernetes CLI Tools for vSphere Using the vSphere Client
To install the
Kubernetes CLI Tools for vSphere from the DevOps page in vCenter, complete these steps.
Get the link for the Kubernetes CLI Tools download page from your vSphere administrator. Alternatively, if you have access to the vCenter Server, get the link as follows.
Log in to the vCenter Server using the vSphere Client.
Navigate to Workload Management > Namespaces.
Select the vSphere Namespace where you are working.
Select the Summary tab and locate the Status area on this page. (Refer to the image.)
Select Open beneath the Link to CLI Tools heading to open the download page. Or, you can Copy the link.
Select the operating system.
Note: Refer to OS-specific installation steps at the end of this topic as needed.
Download the vsphere-plugin.zip file.
Extract the contents of the ZIP file to a working directory.
Add the location of both executables to your system's PATH variable.
To verify the installation of the kubectl CLI, start a shell, terminal, or command prompt session and run the command kubectl.
You see the kubectl banner message, and the list of command-line options for the CLI.
To verify the installation of the vSphere Plugin for kubectl, run the command kubectl vsphere.
You see the vSphere Plugin for kubectl banner message, and the list of command-line options for the plugin.
Install the Kubernetes CLI Tools for vSphere from the Command Line
If you are using Linux or MacOS, you can run the following command to download the tools the
Kubernetes CLI Tools for vSphere.
Log in to the vCenter Server using the vSphere Client.
Select Workload Management > Supervisor.
Get the load balancer IP address for the Supervisor control plane.
Create a variable for it.
Install the tools by running the following command. (You may have to adjust it for your environment.)