Last active
September 29, 2020 13:36
-
-
Save agu3rra/93bc58282470ebb7d4a7d3f70c902ded to your computer and use it in GitHub Desktop.
Userful Kubernetes Commands
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
az aks get-credentials -g <resourceGroup> -n <clusterName> | |
kubectl create namespace [namespacenamehere] | |
kubectl config set-context --current --namespace=[namehere] | |
kubectl exec --stdin --tty [podname] -- [command] | |
kubectl create -f samplePod.yml | |
kubectl logs pods/[podname] | |
kubectl apply -f deployment.yml --record | |
kubectl rollout stauts deployment [namehere] | |
kubectl rollout history deployment [namehere] | |
kubectl undo deployment [namehere] --to-revision=1 | |
kubectl get events --all-namespaces --sort-by='.metadata.creationTimestamp' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment