Comment on Multiple Kubernetes Services Using Same Port Without SNI

<- View Parent
simonmicro@programming.dev ⁨2⁩ ⁨months⁩ ago

Okay, I’ll try explaining it. Yes there is especially for this very little documentation, so… Yeah.

You start by installing kube-vip into your cluster. Make sure to configure it correctly, so the uplink interface of you workers is being used for the vip, but not e.g. internal ones. Then you create a new loadbalancer-service in k8s, on which you also set the externalIP field. Maybe you also needed some annotations, I’m not so sure anymore. Theoretically that’s it. Now one of you nodes will start serving the service-port under the vip. The service may target everything, not only Traefik.

There is one more thing: Another field on the LB-service allows you to disable any kind of internal routing via your CNI, so you will even be able to see the real source IPv4 of your clients.

I WILL UPDATE THIS SOON WITH MORE SPECIFIC VALUES, HANG ON

source
Sort:hotnewtop