From 791ad96849cc0da9b9a67752ae56cd7816086881 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sun, 19 Mar 2023 15:17:45 +0100 Subject: [PATCH] Add ipv6-check to calico deploy --- .../server/network-plugin/calico/custom-ressource.yml.jinja2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kubernetes/templates/k3s/server/network-plugin/calico/custom-ressource.yml.jinja2 b/kubernetes/templates/k3s/server/network-plugin/calico/custom-ressource.yml.jinja2 index fbe7473..fea2301 100644 --- a/kubernetes/templates/k3s/server/network-plugin/calico/custom-ressource.yml.jinja2 +++ b/kubernetes/templates/k3s/server/network-plugin/calico/custom-ressource.yml.jinja2 @@ -15,11 +15,13 @@ spec: natOutgoing: Enabled nodeSelector: all() +{% if nodeip_ipv6 != "" and kubernetes.ipPool.ipv6 is defined %} - blockSize: 122 cidr: {{ kubernetes.ipPool.ipv6.cluster_cidr }} encapsulation: None natOutgoing: Enabled nodeSelector: all() +{% endif %} ---