Kubernetes CLI Tools
Kubectl + vSphere plugin
Download the CLI tools package to view and control
namespaces in vSphere.
Learn more
Get started with CLI Plugin for vSphere
Kubernetes CLI tool lets you manage your namespaces. Below are a few steps that will help you get started.
- Verify that the SHA256 checksum of vsphere*-plugin.zip Click to copy matches the checksum in the provided file sha256sum.txt. Run command shasum --algorithm 256 --check sha256sum.txt < vsphere*-plugin.zip Click to copy and look for "OK" in the results Verify that the SHA256 checksum of vsphere*-plugin.zip Click to copy matches the checksum in the provided file sha256sum.txt. Run command shasum --algorithm 256 --check sha256sum.txt < vsphere*-plugin.zip Click to copy and look for "OK" in the results Verify that the SHA256 checksum of vsphere*-plugin.zip Click to copy matches the checksum in the provided file sha256sum.txt. In Powershell run command Get-FileHash -Algorithm SHA256 -Path vsphere*-plugin.zip Click to copy to display the checksum
- Put the contents of the .zip file in your OS's executable search path
- Run command kubectl vsphere login --server=<IP_or_master_hostname> Click to copy to log in to server
- Run command kubectl config get-contexts Click to copy to view a list of your Namespaces
- Run command kubectl config use-context <context> Click to copy to choose your default context
vSphere Docker Credential Helper
Download the vSphere Docker Credential Helper to
securely pull
and push image to the embedded Harbor registry in vSphere.
Get started with vSphere Docker Credential Helper
-
Verify that the SHA256 checksum of
vsphere-docker-credential-helper.zip
Click to copy
matches the checksum in sha256sum.txt
Run command shasum --algorithm 256 --check sha256sum.txt < vsphere-docker-credential-helper.zip Click to copy and look for "OK" in the results. Verify that the SHA256 checksum of vsphere-docker-credential-helper.zip Click to copy matches the checksum in sha256sum.txt
Run command shasum --algorithm 256 --check sha256sum.txt < vsphere-docker-credential-helper.zip Click to copy and look for "OK" in the results. Verify that the SHA256 checksum of vsphere-docker-credential-helper.zip Click to copy matches the checksum in sha256sum.txt
In Powershell run command Get-FileHash -Algorithm SHA256 -Path vsphere-docker-credential-helper.zip Click to copy to display the checksum. - Put the contents of the .zip file in your OS's executable search path.
- Download the registry certificate of the embedded Harbor registry and follow Docker documentation to configure registry certificate properly on your Docker daemon.
- Run command docker-credential-vsphere login <harbor-registry> Click to copy to login to the embedded Harbor registry.
- Run command docker pull <image> or docker push <image> Click to copy to pull or push the updated image.
- Run command docker-credential-vsphere logout <harbor-registry> Click to copy to logout of the embedded Harbor registry.