Merge pull request #246 from rbrtbnfgl/canal-ipv6

Updated canal chart for ipv6 only config
pull/250/head
Roberto Bonafiglia 2022-05-04 10:39:58 +02:00 committed by GitHub
commit 58daa54259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1
name: rke2-canal
description: Install Canal Network Plugin.
version: v3.21.4-build20220317
version: v3.21.4-build20220427
appVersion: v3.21.4
home: https://www.projectcalico.org/
keywords:

View File

@ -37,18 +37,24 @@ data:
"ipam": {
"type": "host-local",
"ranges": [
{{- if coalesce .Values.global.clusterCIDRv4 .Values.podCidr }}
[
{
"subnet": "usePodCidr"
}
{{- if coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 }}
],
{{- else }}
]
{{- end }}
{{- end }}
{{- if coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 }}
[
{
"subnet": "usePodCidrIPv6"
}
{{- end }}
]
{{- end }}
]
},
"policy": {
@ -73,7 +79,11 @@ data:
# Flannel network configuration. Mounted into the flannel container.
net-conf.json: |
{
{{- if coalesce .Values.global.clusterCIDRv4 .Values.podCidr }}
"Network": {{ coalesce .Values.global.clusterCIDRv4 .Values.podCidr | quote }},
{{- else }}
"EnableIPv4": false,
{{- end }}
{{- if coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 }}
"IPv6Network": {{ coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 | quote }},
"EnableIPv6": true,

View File

@ -2,7 +2,7 @@
# The IPv4 cidr pool to create on startup if none exists. Pod IPs will be
# chosen from this range.
podCidr: "10.42.0.0/16"
#podCidr: "10.42.0.0/16"
flannel:
# kube-flannel image