Skip to content

Instantly share code, notes, and snippets.

@padupuy
Created November 13, 2019 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save padupuy/885168152f4f7d762b7da62c4c8c8503 to your computer and use it in GitHub Desktop.
Save padupuy/885168152f4f7d762b7da62c4c8c8503 to your computer and use it in GitHub Desktop.
k8s
#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