Kubernetes Loadbalancer is stuck showing default apache page

July 6, 2019 577 views
DigitalOcean Load Balancing Kubernetes


I’m playing around with Kubernetes setup and noticed my loadbalancer all of the sudden is showing an apache default page… interestingly enough it was working before but suddenly decided to show the default page instead of my apps.

When I do kubectl describe service wordpress-lb i get this error message at the bottom of the print out.

Warning CreatingLoadBalancerFailed 30m (x5 over 31m) service-controller Error creating load balancer (will retry): failed to ensure load balancer for service default/wordpress-lb: load-balancer not active, currently new

Normal EnsuringLoadBalancer 28m (x6 over 31m) service-controller Ensuring load balancer

Normal EnsuredLoadBalancer 28m service-controller Ensured load balancer

Im still learning Kubes so im a little lost :P If anyone can point me in the right direction that would be awesome.


2 Answers

Seems to be fixed now, I did nothing. Possibly a stray cache file or something im not sure..

Also to add to this, when I do kubectl delete services wordpress-lb to delete the load balancer, it disappears from my kubernetes command line (as in if I get services nothing shows) but if I visit the external IP I can still see that the service is clearly running still. :( It errors out even when deleting.

Have another answer? Share your knowledge.

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