Browse Source
Improve metallb template for bgp peers (#6574)
Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
pull/6592/head
Arthur Outhenin-Chalandre
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
roles/kubernetes-apps/metallb/defaults/main.yml
-
roles/kubernetes-apps/metallb/templates/metallb-config.yml.j2
|
@ -5,3 +5,4 @@ metallb_protocol: "layer2" |
|
|
metallb_port: "7472" |
|
|
metallb_port: "7472" |
|
|
metallb_limits_cpu: "100m" |
|
|
metallb_limits_cpu: "100m" |
|
|
metallb_limits_mem: "100Mi" |
|
|
metallb_limits_mem: "100Mi" |
|
|
|
|
|
metallb_peers: [] |
|
@ -6,7 +6,7 @@ metadata: |
|
|
name: config |
|
|
name: config |
|
|
data: |
|
|
data: |
|
|
config: | |
|
|
config: | |
|
|
{% if metallb_protocol == 'bgp' %} |
|
|
|
|
|
|
|
|
{% if metallb_peers | length > 0 %} |
|
|
peers: |
|
|
peers: |
|
|
{% for peer in metallb_peers %} |
|
|
{% for peer in metallb_peers %} |
|
|
- peer-address: {{ peer.peer_address }} |
|
|
- peer-address: {{ peer.peer_address }} |
|
|