Last active
February 9, 2021 15:04
-
-
Save naiduv/11b26ef6fad5876c053fb5ae621780a3 to your computer and use it in GitHub Desktop.
running stuff in kubernetes
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
| #https://medium.com/@pczarkowski/kubernetes-tip-run-an-interactive-pod-d701766a12 | |
| #https://gist.github.com/so0k/860b570276a86adc38b75cb859bf4c16 | |
| #create alpine pod | |
| kubectl -n default run --generator=run-pod/v1 --image=alpine -it alpine-shell --restart=Never -- /bin/sh | |
| #to exit the pod | |
| ctrl-p, ctrl-q | |
| #sh back into the pod | |
| kubectl -n default exec --stdin --tty alpine-shell -- sh | |
| #some apps | |
| apk add curl git openssh nano openrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment