Kubernetes & Operations
NetworkPolicy
NetworkPolicy specifies allowed ingress and egress.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A command to try yourself
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- EndpointSliceBeginner · 4 min
EndpointSlice tracks network endpoints backing Services.
- Ingress: host and path routing into the clusterBeginner · 5 min
One load balancer, many Services, and a rule table in YAML. The part that surprises people is that the Ingress object does nothing until a controller exists to read it.
- Readiness probes: when to send trafficIntermediate · 5 min
A container that has started is not a container that can serve. The readiness probe is the switch that keeps a warming Pod out of the Service, and it is also what makes…
- Liveness probes: when to restartIntermediate · 6 min
Some failures leave a process running and useless. A liveness probe is how Kubernetes finds those, and a careless one is how Kubernetes turns a slow database into a…
- Startup probeBeginner · 4 min
Startup probe delays liveness and readiness until boot completes.
- Control plane architectureBeginner · 5 min
Kubernetes control-plane components coordinate desired state and node assignment; kubelets run Pods on nodes.