I am experiencing problems with my Kubernetes Load Balancer
If you are experiencing errors with your Kubernetes Kapsule Load Balancer, this page may help you find solutions to some of the most common problems.
I'm experiencing connectivity issues with my Kubernetes Load Balancer
You may find that your Load Balancer is not connecting to nodes in your Kapsule cluster, meaning that health checks are failing and your application is inaccessible from the internet
Cause
A configuration issue is preventing successful communication between your Load Balancer and the cluster's nodes.
Solutions
- Ensure that you provisioned and configured your Load Balancer via Kubernetes and not via the Scaleway console, which provokes unexpected behaviors and errors.
- Verify that the required service is running on all nodes. If it is missing from some nodes, this could be causing health checks to fail.
- Check your cluster's
externalTrafficPolicy
setting. If it is set toLocal
instead ofCluster
, this could be causing the issue. Change the policy toCluster
. - Try enabling or disabling Cloudflare's Proxy Mode, which may be affecting connectivity.
My certificate is not being resolved when accessing my Kubernetes Load Balancer from within the cluster
You may be able to reach applications from outside your cluster, but when trying to reach your Load Balancer from inside your Kapsule cluster, experience the following error message:
routines:ss3_get_record:wrong version number:../ssl/record/ssl3_record.c:331
Cause
The Load Balancer is not properly configured to handle requests from within the cluster. Specifically, it is not using the hostname to route requests.
Solution:
Add an annotation to the Load Balancer configuration, to use the hostname to route requests:
service.beta.kubernetes.io/scw-loadbalancer-use-hostname: "true"
By adding this annotation, the Load Balancer will use the hostname to route requests from within the cluster.
I am experiencing a different problem
- Check the Load Balancer troubleshooting in the Kubernetes Kapsule documentation
- Read the full documentation on creating and configuring Kubernetes Load Balancers