Browse Source

Allow to specify a source address for metallb peerings, and target only some nodes using node selectors (#8534)

pull/8545/head
Tony Fouchard 2 years ago
committed by GitHub
parent
commit
1d635e04e4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions
  1. 7
      roles/kubernetes-apps/metallb/templates/metallb-config.yml.j2

7
roles/kubernetes-apps/metallb/templates/metallb-config.yml.j2

@ -12,6 +12,13 @@ data:
- peer-address: {{ peer.peer_address }} - peer-address: {{ peer.peer_address }}
peer-asn: {{ peer.peer_asn }} peer-asn: {{ peer.peer_asn }}
my-asn: {{ peer.my_asn }} my-asn: {{ peer.my_asn }}
{% if peer.source_address is defined %}
source-address: {{ peer.source_address }}
{% endif %}
{% if peer.node_selectors is defined %}
node-selectors:
{{ peer.node_selectors | to_yaml(indent=2, width=1337) | indent(8) }}
{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
address-pools: address-pools:

Loading…
Cancel
Save