Skip to content

Instantly share code, notes, and snippets.

@cleberjamaral
Last active April 18, 2020 06:12
Show Gist options
  • Save cleberjamaral/2bbf21eb1bddfec8b4c6c01111eba102 to your computer and use it in GitHub Desktop.
Save cleberjamaral/2bbf21eb1bddfec8b4c6c01111eba102 to your computer and use it in GitHub Desktop.
Kubernetes useful commands

Useful commands for microk8s

  • List resources $ microk8s.kubectl get
  • Show detailed information about a resource $ microk8s.kubectl describe
  • Print the logs from a container in a pod $ microk8s.kubectl logs
  • Execute a command on a container in a pod $ microk8s.kubectl exec
  • Get all info from all namespaces $ microk8s.kubectl get all --all-namespaces
  • Get node log $ microk8s.kubectl describe nodes

Sources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment