Skip to content

Commit

Permalink
jvb: allow to specify jvb service's ipFamilyPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiamoe committed Aug 17, 2024
1 parent 134b720 commit 2eac057
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/jvb/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
{{- with .Values.jvb.service.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- with .Values.jvb.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ . }}
{{- end }}
ports:
- port: {{ default 10000 .Values.jvb.UDPPort }}
{{- if and .Values.jvb.nodePort (or (eq .Values.jvb.service.type "NodePort") (eq .Values.jvb.service.type "LoadBalancer")) }}
Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ jvb:
type: ClusterIP
externalTrafficPolicy: Cluster
externalIPs: []
## If type is set to LoadBalancer and the cluster is dual stack, ipFamilyPolicy can be set to enable dual stack
# addressing for the service.
# ipFamilyPolicy: PreferDualStack
## Annotations to be added to the service (if LoadBalancer is used)
# An example below is needed for DigitalOcean managed k8s setups
# with a LoadBalancer service, so that DO's external LB can perform
Expand Down

0 comments on commit 2eac057

Please sign in to comment.