Created
June 24, 2016 19:30
-
-
Save studiotomi/fc4b0c8b77471c9fb14e495a7db505c5 to your computer and use it in GitHub Desktop.
Kubernetes cheat sheat
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
# 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