Last active
February 22, 2018 19:46
-
-
Save geek182/08142d29837c1dcc1add701ea827d437 to your computer and use it in GitHub Desktop.
kubernetes-survival-kit
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
| #get logs from a spefic pod and keep reading with -f flag | |
| kubectl logs -f pod/ghost-1-wjf6m | |
| #execute a command in container, if have more than one inside pod first will be select. | |
| kubectl exec 123456-7890 date | |
| #Get output from running 'date' in ruby-container from pod 123456-7890 | |
| kubectl exec 123456-7890 -c ruby-container date | |
| #get pod details | |
| kubectl get pod -o wide |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment