Skip to content

Instantly share code, notes, and snippets.

@ikobi12
Last active January 28, 2021 15:09
Show Gist options
  • Save ikobi12/0564cd560181c982cb09ea2dab27b2ed to your computer and use it in GitHub Desktop.
Save ikobi12/0564cd560181c982cb09ea2dab27b2ed to your computer and use it in GitHub Desktop.
[Kubernetes] Kubernetes cheat sheet #kubectl #kubernetes
# Get commands
kubectl get services # List all services in the namespace
kubectl get deployment my-dep # List a particular deployment
kubectl get replicaset # List all replica sets
kubectl get pods # List all pods in the namespace
kubectl get pods -o wide # List all pods in the current namespace, with more details
kubectl get pod my-pod -o yaml # Get a pod's YAML
# Describe commands
kubectl describe nodes my-node
kubectl describe pods my-pod
minikube start --driver=docker
minikube start --driver=docker --alsologtostderr
minikube status
minikube delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment