You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/defaults/main.yml b/defaults/main.yml
index 562d960..bd17171 100644
--- a/defaults/main.yml+++ b/defaults/main.yml@@ -294,3 +294,9 @@ rke2_debug: false
# The value for the node-name configuration item
rke2_node_name: "{{ inventory_hostname }}"
+# default pod network range for rke2+rke2_cluster_cidr:+ - 10.42.0.0/16+# default service network range for rke2+rke2_service_cidr:+ - 10.43.0.0/16diff --git a/templates/config.yaml.j2 b/templates/config.yaml.j2
index 5bf78d0..9317e5d 100644
--- a/templates/config.yaml.j2+++ b/templates/config.yaml.j2@@ -90,3 +90,9 @@ kube-proxy-arg:
disable-cloud-controller: true
cloud-provider-name: "{{ rke2_cloud_provider_name }}"
{% endif %}
+{% if rke2_cluster_cidr is defined %}+cluster-cidr: "{% for network in rke2_cluster_cidr %}{{ network }}{% if not loop['last'] %},{% endif %}{% endfor %}"+{% endif %}+{% if rke2_service_cidr is defined %}+service-cidr: "{% for network in rke2_service_cidr %}{{ network }}{% if not loop['last'] %},{% endif %}{% endfor %}"+{% endif %}
Summary
Hello,
How can I enable dual stack network when init k8s cluster (with input IP/IPv6 addresses from main.yaml)
Thank you.
Issue Type
Feature Idea
The text was updated successfully, but these errors were encountered: