diff --git a/deploy/charts/cert-manager/templates/service.yaml b/deploy/charts/cert-manager/templates/service.yaml index 3d5df905e..98db47e76 100644 --- a/deploy/charts/cert-manager/templates/service.yaml +++ b/deploy/charts/cert-manager/templates/service.yaml @@ -19,6 +19,12 @@ metadata: {{- end }} spec: type: ClusterIP + {{- if .Values.serviceIpFamilyPolicy }} + ipFamilyPolicy: {{ .Values.serviceIpFamilyPolicy }} + {{- end }} + {{- if .Values.serviceIpFamilies }} + ipFamilies: {{ .Values.serviceIpFamilies | toYaml | nindent 2 }} + {{- end }} ports: - protocol: TCP port: 9402 diff --git a/deploy/charts/cert-manager/templates/webhook-service.yaml b/deploy/charts/cert-manager/templates/webhook-service.yaml index 5f9395049..f7de5cee1 100644 --- a/deploy/charts/cert-manager/templates/webhook-service.yaml +++ b/deploy/charts/cert-manager/templates/webhook-service.yaml @@ -18,6 +18,12 @@ metadata: {{- end }} spec: type: {{ .Values.webhook.serviceType }} + {{- if .Values.webhook.ipFamilyPolicy }} + ipFamilyPolicy: {{ .Values.webhook.ipFamilyPolicy }} + {{- end }} + {{- if .Values.webhook.ipFamilies }} + ipFamilies: {{ .Values.webhook.ipFamilies | toYaml | nindent 2 }} + {{- end }} {{- with .Values.webhook.loadBalancerIP }} loadBalancerIP: {{ . }} {{- end }} diff --git a/deploy/charts/cert-manager/values.yaml b/deploy/charts/cert-manager/values.yaml index 91397f1af..5686dc11a 100644 --- a/deploy/charts/cert-manager/values.yaml +++ b/deploy/charts/cert-manager/values.yaml @@ -309,6 +309,14 @@ podLabels: {} # +docs:property # serviceLabels: {} +# Optional set the ip family policy to the controller Service to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services). +# +docs:property +# serviceIpFamilyPolicy: "" + +# Optional sets the families to the controller Service that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6. +# +docs:property +# serviceIpFamilies: [] + # Optional DNS settings. These are useful if you have a public and private DNS zone for # the same domain on Route 53. The following is an example of ensuring # cert-manager can access an ingress or DNS TXT records at all times. @@ -759,6 +767,12 @@ webhook: # Optional additional labels to add to the Webhook Service. serviceLabels: {} + # Optional set the ip family policy to the Webhook Service to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services). + ipFamilyPolicy: "" + + # Optional sets the families to the Webhook Service that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6. + ipFamilies: [] + image: # The container registry to pull the webhook image from. # +docs:property