Add hostAliases to controller pod

Signed-off-by: Pieter van der Giessen <pieter@pionative.com>
This commit is contained in:
Pieter van der Giessen 2024-05-14 13:16:53 +02:00
parent cd2d71f670
commit 22516fddf5
3 changed files with 21 additions and 0 deletions

View File

@ -504,6 +504,13 @@ For more information, see [Pod's DNS Policy](https://kubernetes.io/docs/concepts
Pod DNS configuration. The podDnsConfig field is optional and can work with any podDnsPolicy settings. However, when a Pod's dnsPolicy is set to "None", the dnsConfig field has to be specified. For more information, see [Pod's DNS Config](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config).
#### **hostAliases** ~ `array`
> Default value:
> ```yaml
> []
> ```
Optional hostAliases for cert-manager-controller pods. May be useful when performing ACME DNS-01 self checks.
#### **nodeSelector** ~ `object`
> Default value:
> ```yaml

View File

@ -223,3 +223,6 @@ spec:
dnsConfig:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.hostAliases }}
hostAliases: {{ toYaml . | nindent 8 }}
{{- end }}

View File

@ -337,6 +337,17 @@ podLabels: {}
# - "1.1.1.1"
# - "8.8.8.8"
# Optional hostAliases for cert-manager-controller pods. May be useful when performing ACME DNS-01 self checks.
hostAliases: []
# - ip: 127.0.0.1
# hostnames:
# - foo.local
# - bar.local
# - ip: 10.1.2.3
# hostnames:
# - foo.remote
# - bar.remote
# The nodeSelector on Pods tells Kubernetes to schedule Pods on the nodes with
# matching labels.
# For more information, see [Assigning Pods to Nodes](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/).