Interview Prep/Networking/Kubernetes & Service Networking in Production

Why shouldn't you use `hostNetwork: true` for application pods?

BeginnerProductionKubernetes & Service Networking in Production
Answer

The pod shares the node's network namespace, so ports collide between pods, NetworkPolicy generally cannot isolate it, it can reach node-local services (kubelet, metadata), and it bypasses the pod network's controls.

Reserve it for node agents and CNI or ingress daemons that truly need it.

All Networking questions Roadmap: Networking for DevOps

More on Kubernetes & Service Networking in Production