Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Why are all the droplets connected to my load balancer down?
All the droplets connected to my load balancer are down and I’m trying to find out how to make the health check pass. My setup is like this: DigitalOcean load balancer -> kubernetes ingress -> my application. The kubernetes ingress has no IP and my digitalocean load balancer returns 503.
kkubectl get ingress NAME HOSTS ADDRESS PORTS AGE my-ingress * 80 49s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE load-balancer LoadBalancer 10.245.245.143 [removed] 80:30948/TCP,443:32699/TCP 24h
The healthcheck is to tcp://0.0.0.0:30948.
Here is my yaml configuration:
--- kind: Service apiVersion: v1 metadata: name: load-balancer annotations: service.beta.kubernetes.io/do-loadbalancer-protocol: "http" service.beta.kubernetes.io/do-loadbalancer-algorithm: "round_robin" # No need to provide a port annotation if another tls annotation is present service.beta.kubernetes.io/do-loadbalancer-certificate-id: "[removed]" service.beta.kubernetes.io/do-loadbalancer-redirect-http-to-https: "true" spec: type: LoadBalancer externalTrafficPolicy: Local selector: app: my-ingress ports: - name: http protocol: TCP port: 80 targetPort: 80 - name: https protocol: TCP port: 443 targetPort: 80 --- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: my-ingress annotations: nginx.ingress.kubernetes.io/use-regex: "true" spec: rules: - http: paths: - path: / backend: serviceName: my-api servicePort: 80
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.×