Skip to content

Instantly share code, notes, and snippets.

@krol3
Created May 4, 2020 22:26
Show Gist options
  • Save krol3/bae6932a4993c9e1ed98de90a3d65973 to your computer and use it in GitHub Desktop.
Save krol3/bae6932a4993c9e1ed98de90a3d65973 to your computer and use it in GitHub Desktop.
kubectl-instructions
## setting kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl ​
chmod +x ./kubectl​
sudo mv ./kubectl /usr/local/bin/kubectl​
kubectl version​
## setting cluster
export KUBECONFIG=$PWD/testdrive531.yaml​
## util commands
kubectl get nodes​
kubectl exec -ti myPodName bash
kubectl describe pod myPodName
## pods creation
kubectl create -f jboss.yaml
kubectl create -f nginx.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment