fix: respect pod and service cidr in k0s config

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-01-18 14:20:00 -05:00
1 parent 0c4f0260d5
commit b6fdf0d8ad
1 file changed
+3
@@ -88,6 +88,9 @@ spec:
extraArgs: extraArgs:
listen-metrics-urls: http://0.0.0.0:2381 # Required to monitor etcd with kube-prometheus-stack listen-metrics-urls: http://0.0.0.0:2381 # Required to monitor etcd with kube-prometheus-stack
api: api:
network:
podCIDR: "#{ bootstrap_cluster_cidr.split(',')[0] }#"
serviceCIDR: "#{ bootstrap_service_cidr.split(',')[0] }#"
sans: sans:
- "#{ bootstrap_kube_api_addr }#" - "#{ bootstrap_kube_api_addr }#"
#% if bootstrap_kube_api_hostname | default('') %# #% if bootstrap_kube_api_hostname | default('') %#