TCSA 2.X
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
Attaching Kubectl and SHA file for Client Version v1.29.3 with this article which can be found in the attachments section.