Skip to content

Commit

Permalink
allow dual stack on gateway service
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
  • Loading branch information
tobiaskohlbau committed May 2, 2022
1 parent c1c6c3f commit 8d88b13
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/k8s-gateway/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ spec:
externalIPs:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
{{- with .Values.service.ipFamilies }}
ipFamilies:
{{- toYaml . | nindent 6 }}
{{- end -}}
7 changes: 7 additions & 0 deletions charts/k8s-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ service:
# externalTrafficPolicy: Local
# externalIPs:
# - 192.168.1.3
# One of SingleStack, PreferDualStack, or RequireDualStack.
# ipFamilyPolicy: SingleStack
# List of IP families (e.g. IPv4 and/or IPv6).
# ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
# ipFamilies:
# - IPv4
# - IPv6

nodeSelector: {}

Expand Down
1 change: 1 addition & 0 deletions test/k8s-gateway-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ service:
# externalTrafficPolicy: Local
# externalIPs:
# - 192.168.1.3
ipFamilyPolicy: RequireDualStack

debug:
enabled: true
Expand Down

0 comments on commit 8d88b13

Please sign in to comment.