Skip to content

Instantly share code, notes, and snippets.

@dminkovsky
Last active November 17, 2017 17:25
Show Gist options
  • Save dminkovsky/55cc7d3d3bcff84a4a256aabcb73c596 to your computer and use it in GitHub Desktop.
Save dminkovsky/55cc7d3d3bcff84a4a256aabcb73c596 to your computer and use it in GitHub Desktop.
Kubernetes Cheatsheet
# Which cluster are you connect to?
$ kubectl cluster-info
$ kubectl config view context
For more detail: https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
# What's running?
$ kubectl get --all-namespaces all
# Get a resource's complete YAML
$ kubectl get -o yaml TYPE NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment