Skip to content

Instantly share code, notes, and snippets.

@denhamparry
Last active August 8, 2019 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denhamparry/313ee4f5626a807c081f5de38876e3e6 to your computer and use it in GitHub Desktop.
Save denhamparry/313ee4f5626a807c081f5de38876e3e6 to your computer and use it in GitHub Desktop.
kubectl cheatsheet

Kubectl Cheatsheet

Contexts

  • Get current context
$ kubectl config current-context

Namespaces

$ kubectl config set-context $(kubectl config current-context) --namespace=demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment