kubernetes-ingress icon indicating copy to clipboard operation
kubernetes-ingress copied to clipboard

Favour "External IP" of a svc when running in external mode

Open sysadmiral opened this issue 3 years ago • 7 comments

Hi,

Really appreciate the kubernetes-ingress! ❤️

I spoke with @Mo3m3n about this request on the slack channel.

When the controller is running outside the cluster --external and you have something in the cluster exposing IP addresses for you i.e. something like metallb then the controller should favour the allocated external ip instead of the svc's ip (which is in the pod subnet). This would also stop the need for ip route add <pod-network> via <node-ip> on the controller server since the external ip will likely be available on the local network.

So basically...

IF --external AND svc status.loadBalancer.ingress[*].ip is not null THEN use status.loadBalancer.ingress[*].ip values in haproxy.cfg for backend location.

Hopefully that makes sense?

Cheers,

Amo

sysadmiral avatar Aug 11 '21 14:08 sysadmiral

Using the services ClusterIP would also be useful. For example to integrate with linkerd https://linkerd.io/2.10/tasks/using-ingress/#proxy-modes

nbraun-wolf avatar Aug 19 '21 05:08 nbraun-wolf

Hi @Mo3m3n I just wondered if there was any update on this idea? It seems a perfect fit for running the haproxy ingress in external mode.

sysadmiral avatar Oct 22 '21 21:10 sysadmiral

Hi @sysadmiral Sorry for the delay, this is in the roadmap of the next release: 1.8 scheduled in two months

Mo3m3n avatar Dec 01 '21 23:12 Mo3m3n

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 03 '22 14:01 stale[bot]

I see we're up to 1.8.3 and wondered if this had been included? (it doesn't look like it yet from the release notes)

sysadmiral avatar Jun 19 '22 21:06 sysadmiral

Hi @Mo3m3n this has been open for 12 months. Is there any plan to look at adding this functionality/feature?

If it's unlikely then I can at least look at other ingresses.

sysadmiral avatar Aug 17 '22 21:08 sysadmiral

We also very interested in this enhancement. Any feedback please?

RaSerge avatar Nov 07 '22 09:11 RaSerge