Skip to content

Commit 52bd65e

Browse files
authored
Add controller.dnsPolicy to the helm chart (#3136)
1 parent 15a1fdf commit 52bd65e

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

deployments/helm-chart/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Parameter | Description | Default
153153
`controller.nginxplus` | Deploys the Ingress Controller for NGINX Plus. | false
154154
`controller.nginxReloadTimeout` | The timeout in milliseconds which the Ingress Controller will wait for a successful NGINX reload after a change or at the initial start. | 60000
155155
`controller.hostNetwork` | Enables the Ingress Controller pods to use the host's network namespace. | false
156+
`controller.dnsPolicy` | DNS policy for the Ingress Controller pods. | ClusterFirst
156157
`controller.nginxDebug` | Enables debugging for NGINX. Uses the `nginx-debug` binary. Requires `error-log-level: debug` in the ConfigMap via `controller.config.entries`. | false
157158
`controller.logLevel` | The log level of the Ingress Controller. | 1
158159
`controller.image.digest ` | The image digest of the Ingress Controller. | None

deployments/helm-chart/templates/controller-daemonset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ spec:
6868
priorityClassName: {{ .Values.controller.priorityClassName }}
6969
{{- end }}
7070
hostNetwork: {{ .Values.controller.hostNetwork }}
71+
dnsPolicy: {{ .Values.controller.dnsPolicy }}
7172
containers:
7273
- name: {{ include "nginx-ingress.name" . }}
7374
image: {{ include "nginx-ingress.image" . }}

deployments/helm-chart/templates/controller-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ spec:
7373
automountServiceAccountToken: true
7474
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
7575
hostNetwork: {{ .Values.controller.hostNetwork }}
76+
dnsPolicy: {{ .Values.controller.dnsPolicy }}
7677
containers:
7778
- image: {{ include "nginx-ingress.image" . }}
7879
name: {{ include "nginx-ingress.name" . }}

deployments/helm-chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ controller:
3535
## Enables the Ingress Controller pods to use the host's network namespace.
3636
hostNetwork: false
3737

38+
## DNS policy for the Ingress Controller pods
39+
dnsPolicy: ClusterFirst
40+
3841
## Enables debugging for NGINX. Uses the nginx-debug binary. Requires error-log-level: debug in the ConfigMap via `controller.config.entries`.
3942
nginxDebug: false
4043

0 commit comments

Comments
 (0)