Kubernetes & Operations
kubectl: get, describe, logs, exec, apply and namespaces
Six verbs and one flag cover most of a Kubernetes day. The flag, -n, is also the reason a healthy app can look missing.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- What Kubernetes is and why one container is not enoughBeginner · 5 min
One container on one machine is easy. Fifty containers on ten machines that fail at random is a different job, and Kubernetes is the program that does it.
- Cluster architecture: control plane, nodes, kubelet and etcdBeginner · 6 min
You type one kubectl command and three containers appear on machines you never named. Six small programs made that happen, and knowing which one failed is most of…
- Pod lifecycle and phases: Pending, Running, CrashLoopBackOffBeginner · 5 min
kubectl get pods prints one word per Pod, but that word is not the Pod's phase. Knowing the difference tells you whether to look at scheduling, the image, or your own…
- kubectl rollout: status, history and undoBeginner · 5 min
Three subcommands turn a bad deploy into a two-minute fix, and one limit of rollback, what it does not revert, is the part interviewers ask about.
- NodePort, LoadBalancer and how traffic enters the clusterBeginner · 6 min
A ClusterIP stops at the cluster edge. Two more Service types, NodePort and LoadBalancer, open it, each stacked on the one before, and the one most teams reach for…
- Service discovery and CoreDNSBeginner · 5 min
Inside a Pod, orders resolves and orders.prod resolves, but a name like api.partner.com quietly costs four lookups. The reason is three lines in a file the kubelet…