☸️kubectl
Also known as Kube Control, kubectl apply, kubectl get pods
The command-line tool for Kubernetes. It reads, creates and changes what runs in a cluster.
Think of it like
It is like a TV remote for Kubernetes. You press buttons here, and the cluster does the work.
Example
Emma sends her deployment file with one kubectl line. A moment later, kubectl shows her three pods are ready.
Why it matters
Definition
Example code
console
$ kubectl apply -f https://k8s.io/examples/controllers/nginx-deployment.yaml
deployment.apps/nginx-deployment createdCommon mistake
Key takeaways
- 1Talks to the brain. Every command goes to the control plane.
- 2Get, apply, logs. Look, change, then check what happened.
- 3Knows its cluster. A config file says where it points.