VMware TelcoCloudServiceAssurance | (How To) Install Kubectl on Linux Machines for Remote Cluster Users
search cancel

VMware TelcoCloudServiceAssurance | (How To) Install Kubectl on Linux Machines for Remote Cluster Users

book

Article ID: 323809

calendar_today

Updated On:

Products

VMware Telco Cloud Service Assurance

Issue/Introduction

The following steps are to be implemented in case users wish to use kubectl utility from a remote machine to access the VMware Telco Cloud ServiceAssurance cluster

Resolution

Please follow the steps below:

1) To Install kubectl binary with curl on Linux, download the kubectl latest release with the command:

# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

2) (Optional) Validate the binary by downloading the kubectl checksum file:

# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
# echo "$(cat kubectl.sha256) kubectl" | sha256sum --check

If valid, the output is:
kubectl: OK

If the check fails, sha256 exits with nonzero status and prints output similar to:
kubectl: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match

Note: Ensure to download the same version of the binary and checksum.

 

3) Install kubectl

# sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

 

4) Test to ensure the version you installed is up-to-date:

# kubectl version --client

 

5) Export the TCSA deployment cluster configuration by setting the KUBECONFIG environment variable:

# export KUBECONFIG=<Path to the kubeconfig>
Example: export KUBECONFIG=/root/.kube/TCSA            #where TCSA is the kubeconfig name

Additional Information

Attaching Kubectl and SHA file for Client Version v1.29.3 with this article which can be found in the attachments section.

 


Attachments

SHA256kubectl get_app