Load Balancer not forwarding to kubernetes service on nodePort.
I run a kubernetes cluster on Digital Ocean.
I created a service, which is exposed via type
nodePort. I can access the service in my browser if I enter
Now I want to use a DigitalOcean Load Balancer to forward traffic from port
80 to the service, but it doesn’t work. If I enter the load balancer IP in the browser I get:
503 Service Unavailable.
The load balancer is configured to forward
80 to Droplet
I’m not sure, but can it be that the Load Balancer doesn’t forward to the Public Droplet Ip? If this is the problem, how can I expose a Kubernetes Service using the Private Droplet Ip?
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.