Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting loadBalancerClass for loadbalancer services #2600

Open
viceice opened this issue Apr 9, 2024 · 1 comment
Open

Support setting loadBalancerClass for loadbalancer services #2600

viceice opened this issue Apr 9, 2024 · 1 comment

Comments

@viceice
Copy link

viceice commented Apr 9, 2024

Please, answer some short questions which should help us to understand your problem / question better?

  • Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.11.0 (via helm chart)
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? Bare Metal K3s
  • Are you running Postgres Operator in production? yes
  • Type of issue? feature request

We use different kinds of loadbalancers on our cluster, so we need to set spec.loadBalancerClass1, so the right loadbalancer provider can set the appropriate values. Currently we can only use annotations via replicaServiceAnnotations which issn't enough.
Maybe a generic spec field makes sense, so all kind of service overrides can be used.

Footnotes

  1. https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class

@FxKu
Copy link
Member

FxKu commented May 17, 2024

sounds like a good PR to me :)
You can define another global config option to specify the class where the default is empty. Type should be *string then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants