Configuring NGINX Ingress using Annotations
I was working with an application that runs on an EKS Kubernetes cluster and includes an NGINX Ingress Controller.
When you create a Service of type LoadBalancer
on EKS, a network load balancer will be provisioned.
When I tried to access the endpoint I got this error.
(from the
Long story short, the Service was missing an important annotation:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: ssl
The default value is tcp
. https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#backend-protocol
Lesson learned: when troubleshooting k8s issues, be sure to look very closely at annotations