How do you load-test the network path of a Kubernetes service?
IntermediateProductionKubernetes & Service Networking in Production
Answer
Run a load generator inside and outside the cluster (k6, wrk2, vegeta, fortio) against the Service and the public endpoint, compare latency distributions and error rates, observe conntrack counts, ENI limits and NAT gateway metrics during the test, and test with node and pod failures.
fortio load -qps 500 -t 120s -c 32 http://web.shop.svc:80/
More on Kubernetes & Service Networking in Production
How do you expose an application on Kubernetes to the internet in production?BeginnerALB IP mode versus instance mode on EKS: which should you use?IntermediateHow do you achieve graceful pod shutdown with no dropped requests?AdvancedHow do readiness, liveness and startup probes interact with traffic?BeginnerHow do you design default-deny NetworkPolicies without breaking DNS?IntermediateHow do you debug "pod cannot reach service" in Kubernetes?Advanced