Skip to content

Commit

Permalink
allow defining ipFamilyPolicy for services
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiamoe committed Aug 5, 2024
1 parent c590056 commit ba0884a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/stateless-dns/templates/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
{{- include "stateless-dns.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.dnsUdp.type }}
{{- with .Values.service.dnsUdp.ipFamilyPolicy }}
ipFamilyPolicy: {{ . | quote }}
{{- end }}
ports:
- port: {{ .Values.service.dnsUdp.port }}
targetPort: dns-udp
Expand All @@ -37,6 +40,9 @@ metadata:
{{- include "stateless-dns.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.dnsTcp.type }}
{{- with .Values.service.dnsTcp.ipFamilyPolicy }}
ipFamilyPolicy: {{ . | quote }}
{{- end }}
ports:
- port: {{ .Values.service.dnsTcp.port }}
targetPort: dns-tcp
Expand All @@ -61,6 +67,9 @@ metadata:
{{- include "stateless-dns.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.api.type }}
{{- with .Values.service.api.ipFamilyPolicy }}
ipFamilyPolicy: {{ . | quote }}
{{- end }}
ports:
- port: {{ .Values.service.api.port }}
targetPort: http
Expand All @@ -85,6 +94,9 @@ metadata:
{{- include "stateless-dns.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.externalDNSMetrics.type }}
{{- with .Values.service.externalDNSMetrics.ipFamilyPolicy }}
ipFamilyPolicy: {{ . | quote }}
{{- end }}
ports:
- port: {{ .Values.service.externalDNSMetrics.port }}
targetPort: metrics-http
Expand Down

0 comments on commit ba0884a

Please sign in to comment.