Add k8s metallb switch parameter in k8s models
Use part of private adresses pool for metallb addresses.
By default metallb is disabled.
Change-Id: I60f62abbbf5681a91304c88560912f43802a89f2
Related-PROD: PROD-21474
diff --git a/classes/cluster/k8s-aio-calico/kubernetes/control.yml b/classes/cluster/k8s-aio-calico/kubernetes/control.yml
index 98bc75b..e337107 100644
--- a/classes/cluster/k8s-aio-calico/kubernetes/control.yml
+++ b/classes/cluster/k8s-aio-calico/kubernetes/control.yml
@@ -46,6 +46,10 @@
agent_image: ${_param:kubernetes_netchecker_agent_image}
server_image: ${_param:kubernetes_netchecker_server_image}
agent_probeurls: ${_param:kubernetes_netchecker_agent_probeurls}
+ metallb:
+ enabled: ${_param:kubernetes_metallb_enabled}
+ addresses:
+ - ${_param:kubernetes_metallb_addresses_pool}
master:
etcd:
ssl:
diff --git a/classes/cluster/k8s-aio-calico/kubernetes/init.yml b/classes/cluster/k8s-aio-calico/kubernetes/init.yml
index e15ff5b..be6201c 100644
--- a/classes/cluster/k8s-aio-calico/kubernetes/init.yml
+++ b/classes/cluster/k8s-aio-calico/kubernetes/init.yml
@@ -65,10 +65,12 @@
kubernetes_externaldns_image: mirantis/external-dns:latest
kubernetes_externaldns_provider: coredns
+ kubernetes_metallb_addresses_pool: 172.16.10.60-172.16.10.80
+
# switches of addons
kubernetes_coredns_enabled: false
kubernetes_externaldns_enabled: false
-
+ kubernetes_metallb_enabled: false
linux:
network:
host: