Skip to content

Instantly share code, notes, and snippets.

@studiotomi
Created June 24, 2016 19:30
Show Gist options
  • Save studiotomi/fc4b0c8b77471c9fb14e495a7db505c5 to your computer and use it in GitHub Desktop.
Save studiotomi/fc4b0c8b77471c9fb14e495a7db505c5 to your computer and use it in GitHub Desktop.
Kubernetes cheat sheat
# To determine which node a container is on:
kubectl get pods -o wide
# To view current resource usuage and limits of a cluser
kubectl describe nodes <cluster name>
# To view what is happening on a container
kubectl attach <container-name>
# To start an interactive shell on a container
kubectl exec -it <container-name> bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment