Created
November 13, 2019 14:22
-
-
Save padupuy/885168152f4f7d762b7da62c4c8c8503 to your computer and use it in GitHub Desktop.
k8s
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
#Contexts | |
kubectl config get-contexts | |
kubectl config use-context *contextName* | |
#Services | |
kubectl get services | |
kubectl describe services *serviceName* | |
#Pods | |
kubectl get pods | |
kubectl describe pods *podId* | |
kubectl exec -it *podId* bash | |
kubectl logs -f *podId* | |
kubectl delete pod *podId* | |
#Config map | |
kubectl get configmaps | |
kubectl describe configmaps *configmapId* | |
#Secrets | |
kubectl get secrets | |
kubectl describe secrets *secretName* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment