https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
- download config from console web and store it in /home/ubuntu/.kube/config
kubectl apply -f deploy.yaml
kubectl get deployments
https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
kubectl apply -f deploy.yaml
kubectl get deployments
cd /tmp
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
mkdir -p /opt/.kubectl
mv ./kubectl /opt/.kubectl
export KUBECTL_HOME=/opt/.kubectl
export PATH=$PATH:$KUBECTL_HOME
kubectl version --client
Download the .kubeconfig files from your Cluster’s overview page and store it in the jenkins instance
nano /var/jenkins_home/.kube/config
to validate it, execute kubectl get nodes
You should see