How do you secure a Kubernetes ingress controller?
IntermediateProductionTLS, Certificates & Network Security
Answer
Run it in dedicated nodes or namespace, keep it patched (ingress-nginx has had critical CVEs), restrict snippet annotations, enforce TLS 1.2+, put a WAF or cloud LB in front, limit body size and timeouts, rate limit, and give it only the RBAC it needs. Expose it through an NLB with a security group allowing only the CDN or expected ranges.
Move toward the Gateway API where controllers are maintained and the role model is cleaner.
More on TLS, Certificates & Network Security
How do you manage certificates at scale without outages?IntermediateHow does cert-manager work in Kubernetes?IntermediateWhat is the best way to terminate TLS in AWS?IntermediateWhat is SPIFFE/SPIRE and why do platforms adopt it?IntermediateHow do you handle TLS configuration drift across many servers?IntermediateWhat are the risks of terminating TLS at the edge and sending plain HTTP internally?Advanced