Interview Prep/Networking/TLS, Certificates & Network Security

How do you secure east-west traffic in Kubernetes?

AdvancedProductionTLS, Certificates & Network Security
Answer

Default-deny NetworkPolicies per namespace with explicit allows (including DNS egress to kube-dns), mTLS via mesh, namespace and service-account-based authorization policies, no host networking for workloads, restricted egress through egress gateway, and runtime detection (Falco, Cilium Tetragon).

Test policies with a debug pod (kubectl run test --rm -it --image=nicolaka/netshoot) and Hubble to see denied flows.

All Networking questions Roadmap: Networking for DevOps

More on TLS, Certificates & Network Security