From 4db057e9c21cd7c172fd461d90a72c74bfde6df6 Mon Sep 17 00:00:00 2001 From: Damian Szeluga Date: Fri, 22 Oct 2021 18:38:39 +0200 Subject: [PATCH] Allow changing metallb default pool name (#8111) --- roles/kubernetes-apps/metallb/defaults/main.yml | 1 + roles/kubernetes-apps/metallb/templates/metallb-config.yml.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/metallb/defaults/main.yml b/roles/kubernetes-apps/metallb/defaults/main.yml index c5c839467..38e95b78e 100644 --- a/roles/kubernetes-apps/metallb/defaults/main.yml +++ b/roles/kubernetes-apps/metallb/defaults/main.yml @@ -18,3 +18,4 @@ metallb_speaker_tolerations: key: node-role.kubernetes.io/control-plane operator: Exists metallb_controller_tolerations: [] +metallb_pool_name: "loadbalanced" diff --git a/roles/kubernetes-apps/metallb/templates/metallb-config.yml.j2 b/roles/kubernetes-apps/metallb/templates/metallb-config.yml.j2 index 263561bbe..6157d63c2 100644 --- a/roles/kubernetes-apps/metallb/templates/metallb-config.yml.j2 +++ b/roles/kubernetes-apps/metallb/templates/metallb-config.yml.j2 @@ -15,7 +15,7 @@ data: {% endfor %} {% endif %} address-pools: - - name: loadbalanced + - name: {{ metallb_pool_name }} protocol: {{ metallb_protocol }} addresses: {% for ip_range in metallb_ip_range %}