Update tolerations

This commit is contained in:
Jeroen Rijken 2022-10-21 16:23:18 +02:00
parent ad8050401a
commit d9ea0bcb65
2 changed files with 13 additions and 11 deletions

View file

@ -24,7 +24,9 @@ metallb_speaker_enabled: true
By default only the MetalLB BGP speaker is allowed to run on control plane nodes. If you have a single node cluster or a cluster where control plane are also worker nodes you may need to enable tolerations for the MetalLB controller: By default only the MetalLB BGP speaker is allowed to run on control plane nodes. If you have a single node cluster or a cluster where control plane are also worker nodes you may need to enable tolerations for the MetalLB controller:
```yaml ```yaml
metallb_controller_tolerations: metallb_config:
controller:
tolerations:
- key: "node-role.kubernetes.io/master" - key: "node-role.kubernetes.io/master"
operator: "Equal" operator: "Equal"
value: "" value: ""

View file

@ -1550,9 +1550,9 @@ spec:
- mountPath: /tmp/k8s-webhook-server/serving-certs - mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert name: cert
readOnly: true readOnly: true
{% if metallb_controller_tolerations %} {% if metallb_config.controller.tolerations %}
tolerations: tolerations:
{{ metallb_controller_tolerations | to_nice_yaml(indent=2) | indent(width=8) }} {{ metallb_config.controller.tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
{% endif %} {% endif %}
{% if metallb_controller_nodeselector %} {% if metallb_controller_nodeselector %}
nodeSelector: nodeSelector: