Skip to content

Commit

Permalink
chore: implement cheat sheet kubectl run debug (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta authored Jul 31, 2023
1 parent 24d6d24 commit 55aa488
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kubectl-run
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ kubectl run {{pod-name}} --image={{name-image}} -n {{namespace}}
## Run pod nginx and write its spec into a file called pod.yaml

kubectl run {{pod-name}} --image={{name-image}} --dry-run=client -o yaml > pod.yaml

## Run pod curl for debug
kubectl run -i --tty --rm debug --namespace {{namespace-name}} --image=curlimages/curl --restart=Never -- sh

0 comments on commit 55aa488

Please sign in to comment.