Kubernetes commands
Kubernetes
- kubectl get podsList pods
- kubectl logsPod logs
- kubectl describeDescribe resource/events
- kubectl get configmapInspect ConfigMaps
- kubectl get svcList services
- kubectl createCreate resources
- kubectl get ingressInspect Ingress
- kubectl get secretInspect Secrets
- kubectl applyApply manifests
- kubectl drainDrain a node
- kubectl editEdit resources live
- kubectl get nsList namespaces
- kubectl runRun ad-hoc pods
- kubectl cordonCordon a node
- kubectl get deployList deployments
- kubectl get nodesNode status
- kubectl get pvcCheck PVCs/PVs
- kubectl set imageUpdate container images
- kubectl debugEphemeral debug containers
- kubectl execExec into a pod
- kubectl get allEverything in a namespace
- kubectl get eventsCluster events
- helm install / upgradeInstall/upgrade Helm charts
- kubectl auth can-iCheck RBAC permissions
- kubectl config use-contextSwitch cluster context
- kubectl exposeExpose as a Service
- kubectl patchPatch resources
- kubectl rolloutRollout restart/undo
- kubectl create secretCreate secrets
- kubectl explainBuilt-in API docs
- kubectl labelAdd/remove labels
- kubectl port-forwardPort-forward
- kubectl scaleScale replicas
- kubectl topResource usage
- helm list / statusInspect Helm releases
- helm rollback / historyRoll back Helm releases
- kubectl autoscaleHorizontal autoscaling
- kubectl deleteDelete resources
- kubectl diffDiff before apply
- kubectl get endpointsService endpoints
- kubectl get jobs / cronjobsJobs and CronJobs
- kubectl taintTaint nodes
- kubectl waitWait for conditions
- kubectl api-resourcesList resource kinds
- kubectl apply -kApply with Kustomize
- kubectl cluster-infoCluster at a glance
- kubectl get daemonsetsDaemonSets
- kubectl get serviceaccountService accounts
- kubectl get statefulsetsStatefulSets
- kubectl versionClient/server versions
- kubectl annotateAnnotations
- kubectl cpCopy to/from pod
- kubectl proxyProxy to the API server
Other platforms
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store