Skip to content

Commit

Permalink
Merge pull request #240 from tregad/main
Browse files Browse the repository at this point in the history
feat: Enable dual stack network
  • Loading branch information
MonolithProjects authored Jul 25, 2024
2 parents f733dbb + baabf17 commit 6535b05
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,14 @@ rke2_debug: false

# The value for the node-name configuration item
rke2_node_name: "{{ inventory_hostname }}"

# the network to use for Pods.. Set to '10.42.0.0/16' by default.
rke2_cluster_cidr:
- 10.42.0.0/16

# the network to use for ClusterIP Services. Set to '10.43.0.0/16' by default.
rke2_service_cidr:
- 10.43.0.0/16
```
## Inventory file example
Expand Down
8 changes: 8 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,11 @@ 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/16
2 changes: 2 additions & 0 deletions templates/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,5 @@ kube-proxy-arg:
disable-cloud-controller: true
cloud-provider-name: "{{ rke2_cloud_provider_name }}"
{% endif %}
cluster-cidr: "{% for network in rke2_cluster_cidr %}{{ network }}{% if not loop['last'] %},{% endif %}{% endfor %}"
service-cidr: "{% for network in rke2_service_cidr %}{{ network }}{% if not loop['last'] %},{% endif %}{% endfor %}"

0 comments on commit 6535b05

Please sign in to comment.