Merge pull request #264 from rbrtbnfgl/canal-ipv6-fix

Fixed Canal for IPv6 only setup
pull/266/head
Roberto Bonafiglia 2022-05-23 21:01:53 +02:00 committed by GitHub
commit 2c80606da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -121,9 +121,6 @@ spec:
value: {{ .Values.calico.felixIptablesRefreshInterval | quote}} value: {{ .Values.calico.felixIptablesRefreshInterval | quote}}
- name: FELIX_IPTABLESBACKEND - name: FELIX_IPTABLESBACKEND
value: {{ .Values.calico.felixIptablesBackend | quote}} value: {{ .Values.calico.felixIptablesBackend | quote}}
# No IP address needed.
- name: IP
value: ""
# The default IPv4 pool to create on startup if none exists. Pod IPs will be # The default IPv4 pool to create on startup if none exists. Pod IPs will be
# chosen from this range. Changing this value after installation will have # chosen from this range. Changing this value after installation will have
# no effect. This should fall within `--cluster-cidr`. # no effect. This should fall within `--cluster-cidr`.
@ -135,9 +132,14 @@ spec:
# Set Felix endpoint to host default action to ACCEPT. # Set Felix endpoint to host default action to ACCEPT.
- name: FELIX_DEFAULTENDPOINTTOHOSTACTION - name: FELIX_DEFAULTENDPOINTTOHOSTACTION
value: {{ .Values.calico.felixDefaultEndpointToHostAction | quote }} value: {{ .Values.calico.felixDefaultEndpointToHostAction | quote }}
{{- if coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 }}
- name: FELIX_IPV6SUPPORT
value: "true"
{{- else }}
# Disable IPv6 on Kubernetes. # Disable IPv6 on Kubernetes.
- name: FELIX_IPV6SUPPORT - name: FELIX_IPV6SUPPORT
value: {{ .Values.calico.felixIpv6Support | quote }} value: {{ .Values.calico.felixIpv6Support | quote }}
{{- end }}
# Set Felix logging to "info" # Set Felix logging to "info"
- name: FELIX_LOGSEVERITYSCREEN - name: FELIX_LOGSEVERITYSCREEN
value: {{ .Values.calico.felixLogSeverityScreen | quote }} value: {{ .Values.calico.felixLogSeverityScreen | quote }}
@ -152,12 +154,19 @@ spec:
value: {{ .Values.calico.felixFailsafeInboundHostPorts | quote }} value: {{ .Values.calico.felixFailsafeInboundHostPorts | quote }}
- name: FELIX_FAILSAFEOUTBOUNDHOSTPORTS - name: FELIX_FAILSAFEOUTBOUNDHOSTPORTS
value: {{ .Values.calico.felixFailsafeOutboundHostPorts | quote }} value: {{ .Values.calico.felixFailsafeOutboundHostPorts | quote }}
{{- if coalesce .Values.global.clusterCIDRv4 .Values.podCidr }}
# The method to use to autodetect the IPv4 address for this host. # The method to use to autodetect the IPv4 address for this host.
- name: IP_AUTODETECTION_METHOD - name: IP_AUTODETECTION_METHOD
value: {{ .Values.calico.ipAutoDetectionMethod | quote }} value: {{ .Values.calico.ipAutoDetectionMethod | quote }}
{{- else }}
- name: IP
value: "none"
{{- end }}
{{- if coalesce .Values.global.clusterCIDRv6 .Values.podCidrv6 }}
# The method to use to autodetect the IPv6 address for this host. # The method to use to autodetect the IPv6 address for this host.
- name: IP6_AUTODETECTION_METHOD - name: IP6_AUTODETECTION_METHOD
value: {{ .Values.calico.ip6AutoDetectionMethod | quote }} value: {{ .Values.calico.ip6AutoDetectionMethod | quote }}
{{- end }}
securityContext: securityContext:
privileged: true privileged: true
resources: resources:

View File

@ -1,2 +1,2 @@
url: local url: local
packageVersion: 01 packageVersion: 02