Kubernetes & Operations
NodePort, LoadBalancer and how traffic enters the cluster
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 first quietly creates a billed load balancer per Service.
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
- 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.
- 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…
- ConfigMaps and SecretsBeginner · 6 min
The same image runs in staging and production because settings live outside it. Two details cause most incidents: environment variables never update in a running Pod…
- Resource requests, limits and QoS classesBeginner · 6 min
A request is a reservation the scheduler uses, a limit is a ceiling the kernel enforces, and they fail in opposite ways: one leaves Pods Pending on a nearly idle node…
- Volumes, PersistentVolumes and PVCsIntermediate · 6 min
A container's filesystem disappears with the container, a volume can outlast it, and a PersistentVolumeClaim is how a Pod asks for disk without knowing where the disk is.