Kubernetes Cheatsheet

kubectl cluster-info - Kubernetes info

kubectl config get-clusters - list clusters

kubectl get all - list all entities with corresponding prefixes:

  • pod
  • service
  • daemonset
  • deployment
  • replicaset
  • statefulset
  • job
  • cronjobs

kubectl get nodes - list nodes

kubectl create deployment deployment_name --image=image_name --dry-run -o=yaml > deployment.yaml - create deployment.yaml