cloud-provider-openstack icon indicating copy to clipboard operation
cloud-provider-openstack copied to clipboard

Increase default max-shared-lb from 2

Open wouterh-dev opened this issue 5 months ago • 3 comments

/kind feature

What happened:

It is possible to share a LoadBalancer between multiple Kubernetes services: https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/openstack-cloud-controller-manager/expose-applications-using-loadbalancer-type-service.md#sharing-load-balancer-with-multiple-services

But the default setting of max-shared-lb is only 2, so you can only have 2 Kubernetes services that share a LoadBalancer. This makes it useful, but very limited.

If there is a good reason for the default to be this low it would be great for it to be documented.

What you expected to happen:

To be able to create more than 2 services that share a LoadBalancer without having to convince my Kubernetes provider to change the setting from the default

How to reproduce it:

  1. Create a Service with Kind=LoadBalancer
  2. Create a second Service that shares the loadbalancer.openstack.org/load-balancer-address & loadbalancer.openstack.org/load-balancer-id annotations but uses different ports.
  3. Observe this succeeds
  4. Create a third Service that shares the loadbalancer.openstack.org/load-balancer-address & loadbalancer.openstack.org/load-balancer-id annotations but uses different ports.
  5. Observe this gives the error message: load balancer NAME already shared with 2 Services

wouterh-dev avatar Aug 12 '25 20:08 wouterh-dev

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Nov 10 '25 21:11 k8s-triage-robot

/remove-lifecycle stale

wouterh-dev avatar Nov 27 '25 13:11 wouterh-dev

We'd love to see this changed also.

NiklausHofer avatar Dec 11 '25 14:12 NiklausHofer