Skip to content

Instantly share code, notes, and snippets.

@ecliptik ecliptik/
Last active Jun 11, 2019

What would you like to do?
Useful kubectl commands

kubectl tricks


Run a on-off debian container with interactive shell and remove on exit

kubectl run --generator=run-pod/v1 --image=debian debian --rm -i --tty -- /bin/bash

Forward a service port locally

kubectl port-forward svc/<name> <port>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.