By Tim
Hi, I have a Kubernetes cluster with two nodes. I’m trying to deploy a Wordpress installation using yaml configs with:
Every configuration are well applied and a Load Balancer is created in my DO account targeting the two nodes of my cluster on the right NodePort. After a long time, the LB is still in an unhealthy status. When I try to fetch the IP address allocated to the LB, sometimes it works (about 90%), sometimes it doesn’t (about 10%).
I tried to remove one of the two nodes but no changes.
Did I miss something ? Wordpress is reached but why the configuration is unstable ?
Thank you for your help
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!
Accepted Answer
Thanks for your response.
Health checks were good and the ingress controller is provided by Digital Ocean.
My problem was in the configuration of my LB service: I’ve fixed externalTrafficPolicy: Local in my service for a correct routing to my pods and it works.
This comment has been deleted
Check that the health-check port (in LoadBalancer settings) is the same as your NodePort so the LoadBalancer can test the state of the service.
Also, have you got an ingress controller like: https://kubernetes.github.io/ingress-nginx/ to route traffic to the correct services?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.