Skip to content

Instantly share code, notes, and snippets.

@naiduv
Last active February 9, 2021 15:04
Show Gist options
  • Select an option

  • Save naiduv/11b26ef6fad5876c053fb5ae621780a3 to your computer and use it in GitHub Desktop.

Select an option

Save naiduv/11b26ef6fad5876c053fb5ae621780a3 to your computer and use it in GitHub Desktop.
running stuff in kubernetes
#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