Created
May 4, 2020 22:26
-
-
Save krol3/bae6932a4993c9e1ed98de90a3d65973 to your computer and use it in GitHub Desktop.
kubectl-instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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