Foundations, topic 5 of 61
kubectl
kubectl is how you talk to the API server. Learn get and describe to read, apply -f to send manifests, logs and exec to look inside a container, and explain to read a field's documentation without leaving the shell.
It reads its clusters and credentials from a kubeconfig file, and a context picks which one you use. Speed with kubectl matters: the CKA and CKAD are two hours of typing it. Use --dry-run=client -o yaml to generate a manifest instead of writing it from scratch.
On Opsfolk
- Kubernetes clusterPlayground, 60 minutesPremium members
Elsewhere
- kubectl referenceOfficial
- kubectl quick referenceOfficial