Report this

What is the reason for this report?

configuring ssl and protocols in loadbalancer from kubernetes

Posted on February 27, 2019

I am trying to get my load balancer configured from kubernetes

I have been told that the way to do this is by using annotations

I am using helm to install my load balancer and nginx ingress: stable/nginx-ingress

The way to configure that is by using the values.yaml file

I have the following in my values.yaml:

  service:
    annotations:
      service.beta.kubernetes.io/do-loadbalancer-protocol: "https"
      service.beta.kubernetes.io/do-loadbalancer-redirect-http-to-https: "true"
      service.beta.kubernetes.io/do-loadbalancer-certificate-id: "cert-id-from-do-api"
    labels: {}
    clusterIP: ""

You can see that it has taken inside my k8s dashboard as it shows up in the annotations section for my load balancer

However, after waiting a fair amount of time the load balancer isn’t updated in my DO dashboard.

Has anyone got this working?



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!

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.

Hey friend,

Great question! I’m not an expert on this particular subject but I wanted to get you an answer. This is what I received from Nicholas on our support team:

“Can they share their full manifest or maybe open a ticket if they don’t want to do that on Community? They should only need to create a kind: Service with type: LoadBalancer, but nginx-ingress will do that automatically and update the LB based on whatever services they expose and the kind: Ingress they create.”

Jarland

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.