Enabled proxy protocol in load balancer causing CONNECT_CR_SRVR_HELLO:wrong version number error

September 5, 2019 91 views
DigitalOcean Load Balancing Kubernetes Ubuntu 18.04

Hi,

I have successfully installed my app on Kubernetes cluster. But I observed my app was seeing the local IP instead of actual client IP. So I enabled proxy protocol in load balancer and installed nginx-ingress as follows:

# Installing the Kubernetes Nginx Ingress Controller
helm install stable/nginx-ingress --name nginx-ingress --set controller.publishService.enabled=true,controller.config.use-forwarded-headers='"true"',controller.config.use-proxy-protocol='"true"'

But now I get the following error on accessing my API:

curl https://my-api.example.com/v3/status
curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number
1 comment
Be the first one to answer this question.