kubectl CLI Command Reference
kubectl is the primary interface to a Kubernetes cluster. Beyond get and apply, interviews test knowledge of the inspection trio (describe/logs/exec), local access patterns (port-forward/proxy), node management (cordon/uncordon/taint), resource usage (top), and the imperative workflow (create/expose/run/set image).
Overview
Overview
kubectl is the Swiss Army knife of Kubernetes operations. Knowing only kubectl get and kubectl apply is not enough for interviews, and the CKA and CKAD exams are entirely kubectl-based with no GUI.
Key concepts
- kubectl describe Events section
- kubectl logs --previous
- kubectl port-forward vs kubectl proxy
- cordon vs drain
- Taint effects: NoSchedule vs NoExecute
Sign up free to read the full topic
More DevOps topics
- Jenkins
- Jenkins Controller vs Agent Architecture
- Jenkinsfile — Pipeline as Code
- JFrog Artifactory — Production Administration, Errors and Mistakes
- JFrog Xray — Policies, Watches, Impact Analysis, Errors and Mistakes
- Karpenter — Node Autoscaling
- Kubernetes — Stuck Rollouts, Version Upgrades and Mistakes
- Kubernetes Admission Control
- Kubernetes AI and GPU Scheduling
- Kubernetes API Aggregation
- Kubernetes API Errors — 4xx and 5xx Explained
- Kubernetes Architecture
Start free on Cariara · Coding problems · System design studio