Last active
February 22, 2018 19:46
-
-
Save geek182/08142d29837c1dcc1add701ea827d437 to your computer and use it in GitHub Desktop.
Revisions
-
geek182 revised this gist
Feb 22, 2018 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -21,3 +21,6 @@ kubectl delete deployment NAME-OF-DEPLOY #Forward port to pod, useful for troubleshooting, local-port->pod-port kubectl port-forward POD-NAME 10080:80 #Run a deployment with spefic image repository kubectl run kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1 --port=8080 -
geek182 revised this gist
Feb 21, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -19,5 +19,5 @@ kubectl get services --watch #delete a deployment kubectl delete deployment NAME-OF-DEPLOY #Forward port to pod, useful for troubleshooting, local-port->pod-port kubectl port-forward POD-NAME 10080:80 -
geek182 revised this gist
Feb 21, 2018 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,3 +18,6 @@ kubectl get services --watch #delete a deployment kubectl delete deployment NAME-OF-DEPLOY #Forward port to pod, useful for troubleshooting, local-port->port-port kubectl port-forward POD-NAME 10080:80 -
geek182 revised this gist
Feb 20, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,9 @@ #get logs from a spefic pod and keep reading with -f flag kubectl logs -f pod/ghost-1-wjf6m #Connect to a pod kubectl exec POD-NAME --stdin --tty /bin/sh #execute a command in container, if have more than one inside pod first will be select. kubectl exec 123456-7890 date @@ -14,4 +17,4 @@ kubectl get pod -o wide kubectl get services --watch #delete a deployment kubectl delete deployment NAME-OF-DEPLOY -
geek182 revised this gist
Feb 20, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,4 +11,7 @@ kubectl logs -f pod/ghost-1-wjf6m kubectl get pod -o wide #get service details and keep update in screen kubectl get services --watch #delete a deployment kubectl delete deployment NAME-OF-DEPLOY -
geek182 revised this gist
Feb 20, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,7 @@ kubectl logs -f pod/ghost-1-wjf6m kubectl exec 123456-7890 -c ruby-container date #get pod details kubectl get pod -o wide #get service details and keep update in screen kubectl get services --watch -
geek182 revised this gist
Feb 20, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,7 @@ kubectl logs -f pod/ghost-1-wjf6m 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 -
geek182 revised this gist
Feb 20, 2018 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,8 @@ #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 -
geek182 created this gist
Feb 20, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ #get logs from a spefic pod and keep reading with -f flag kubectl logs -f pod/ghost-1-wjf6m