Add dns configuration for cert manager (#9673)

Signed-off-by: bo.jiang <bo.jiang@daocloud.io>

Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
pull/9713/head
ERIK 2023-01-24 09:42:15 +08:00 committed by GitHub
parent eb56130433
commit ee2193d4cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -161,6 +161,12 @@ cert_manager_enabled: false
# -----END CERTIFICATE-----
# cert_manager_leader_election_namespace: kube-system
# cert_manager_dns_policy: "ClusterFirst"
# cert_manager_dns_config:
# nameservers:
# - "1.1.1.1"
# - "8.8.8.8"
# MetalLB deployment
metallb_enabled: false
metallb_speaker_enabled: "{{ metallb_enabled }}"

View File

@ -4,6 +4,9 @@ cert_manager_user: 1001
cert_manager_tolerations: []
cert_manager_affinity: {}
cert_manager_nodeselector: {}
cert_manager_dns_policy: "ClusterFirst"
cert_manager_dns_config: {}
## Change leader election namespace when deploying on GKE Autopilot that forbid the changes on kube-system namespace.
## See https://github.com/jetstack/cert-manager/issues/3717

View File

@ -976,6 +976,13 @@ spec:
affinity:
{{ cert_manager_affinity | to_nice_yaml | indent(width=8) }}
{% endif %}
{% if cert_manager_dns_policy %}
dnsPolicy: {{ cert_manager_dns_policy }}
{% endif %}
{% if cert_manager_dns_config %}
dnsConfig:
{{ cert_manager_dns_config | to_nice_yaml | indent(width=8) }}
{% endif %}
{% if cert_manager_trusted_internal_ca is defined %}
volumeMounts:
- mountPath: /etc/ssl/certs/internal-ca.pem