Repository navigation
Provide a ignore-exclude-lb flag - #2280
Conversation
46b5f87 to
ca11ea5
Compare
|
Fixes #2274 |
ca11ea5 to
152698f
Compare
| fullnameOverride: "" | ||
| loadBalancerClass: "" | ||
| # ignore the exclude-from-external-loadbalancer annotation | ||
| ignoreExcludeLB: false |
There was a problem hiding this comment.
Would it be better to put it on speaker?
There was a problem hiding this comment.
My reasoning was, this is a property of metallb as a whole. It has direct effects only on the speaker, but it felt more like a property similar to "loadBalancerClass". Does it make sense? If not I am open to move it
There was a problem hiding this comment.
I think we already have a similar configuration, see
metallb/charts/metallb/values.yaml
Line 269 in d9ab5ec
It's more of a speaker-related property, but I'm ok with both, it's up to you :)
nit: the comment should be updated: ignore the exclude-from-external-loadbalancer label
There was a problem hiding this comment.
Fair enough, I'll change it.
Also, thanks for the comment, I missed it!
| logLevel = flag.String("log-level", "info", fmt.Sprintf("log level. must be one of: [%s]", logging.Levels.String())) | ||
| enablePprof = flag.Bool("enable-pprof", false, "Enable pprof profiling") | ||
| loadBalancerClass = flag.String("lb-class", "", "load balancer class. When enabled, metallb will handle only services whose spec.loadBalancerClass matches the given lb class") | ||
| ignoreLBExclude = flag.Bool("ignore-exclude-lb", false, "ignore the exclude-from-external-load-balancers annotation") |
|
|
||
| New Features: | ||
|
|
||
| - Provide a "ignore-exclude-lb" flag to ignore the `exclude-from-external-load-balancers` annotation ([PR 2280](https://github.com/metallb/metallb/pull/2280), [Issue 2274](https://github.com/metallb/metallb/issues/2274)) |
|
|
||
| ## MetalLB is not advertising my service from my control-plane nodes or from my single node cluster | ||
|
|
||
| Make sure your nodes are not labeled with the [node.kubernetes.io/exclude-from-external-load-balancers](https://kubernetes.io/docs/reference/labels-annotations-taints/#node-kubernetes-io-exclude-from-external-load-balancers) annotation. MetalLB honors that annotation and won't announce any service from |
35c4673 to
2087931
Compare
2087931 to
c6e7d1a
Compare
oribon
left a comment
There was a problem hiding this comment.
lgtm (other than a dangling "annotation" instead of "label"
Removing a check that was making all the tests be skipped, and fix a broken test. Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
MetalLB now honors the node.kubernetes.io/exclude-from-external-load-balancers but this might harm some deployments where there is only one node and kubeadm still labels the control plane with such label. Here we provide a knob to disable the behaviour and make metallb work in such scenarios. Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
We allow disabling the exclusion from the chart. Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
This might harm multiple users, so we mention it and we document how to work it around. Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
7cd479b to
2d7d251
Compare
|
Hi, I just stumbled onto this issue and the fix that goes with it. Thanks in advance |
MetalLB now honors the node.kubernetes.io/exclude-from-external-load-balancers
but this might harm some deployments where there is only one node and
kubeadm still labels the control plane with such label.
Here we provide a knob to disable the behaviour and make metallb work in
such scenarios.