Report this

What is the reason for this report?

Proxy protocol enabled at random, bringing my site offline

Posted on January 12, 2021

My kubernetes cluster’s load balancer has, 3 times now, had proxy protocol turned on for no apparent reason.

This knocks the site offline with an SSL handshake error.

The issue is only fixed by going into the load balancer’s settings and disabling Proxy protocol.

What could be the cause of this?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @pfnsec

It looks like the proxy protocol is turned on automatically. Can you please confirm how you are turning off the proxy protocol in the LoadBalcner?

All loadbalancers provisioned by kubernetes are managed by the Cloud Controller Manager(CCM) running on the master. Any manual modifications to the LB through the cloud panel will be overwritten by the CCM during its reconciliation process to ensure the LB is configured properly with the state defined by the kubernetes service.

In order to configure your LB you need to use kubernetes service annotations. For information on how to apply annotations, you can use the command:

kubectl annotate --help

Docs for DO service annotations can be found here: https://www.digitalocean.com/docs/kubernetes/how-to/configure-load-balancers/

Service annotations can also be found on our public github repository:

https://github.com/digitalocean/digitalocean-cloud-controller-manager/blob/master/docs/controllers/services/annotations.md

I hope it helps!

Best Regards, Purnima Kumari

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.