10BC0 Add initialDelaySeconds to helm charts (#2854) · nginx/kubernetes-ingress@d8d964a · GitHub
[go: up one dir, main page]

Skip to content

Commit d8d964a

Browse files
authored
Add initialDelaySeconds to helm charts (#2854)
1 parent 72d2cb8 commit d8d964a

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

deployments/helm-chart/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ Parameter | Description | Default
238238
`controller.appprotectdos.memory` | RAM memory size to consume in MB. | 50% of free RAM in the container or 80MB, the smaller
239239
`controller.readyStatus.enable` | Enables the readiness endpoint `"/nginx-ready"`. The endpoint returns a success code when NGINX has loaded all the config after the startup. This also configures a readiness probe for the Ingress Controller pods that uses the readiness endpoint. | true
240240
`controller.readyStatus.port` | The HTTP port for the readiness endpoint. | 8081
241+
`controller.readyStatus.initialDelaySeconds` | The number of seconds after the Ingress Controller pod has started before readiness probes are initiated. | 0
241242
`controller.enableLatencyMetrics` | Enable collection of latency metrics for upstreams. Requires `prometheus.create`. | false
242243
`controller.minReadySeconds` | Specifies the minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#min-ready-seconds) | 0
243244
`controller.strategy` | Specifies the strategy used to replace old Pods by new ones. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) | {}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ spec:
8787
{{- end }}
8888
{{- if .Values.controller.readyStatus.enable }}
8989
- name: readiness-port
90-
containerPort: {{ .Values.controller.readyStatus.port}}
90+
containerPort: {{ .Values.controller.readyStatus.port }}
9191
readinessProbe:
9292
httpGet:
9393
path: /nginx-ready
9494
port: readiness-port
9595
periodSeconds: 1
96+
initialDelaySeconds: {{ .Values.controller.readyStatus.initialDelaySeconds }}
9697
{{- end }}
9798
securityContext:
9899
allowPrivilegeEscalation: true

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ spec:
9090
{{- end }}
9191
{{- if .Values.controller.readyStatus.enable }}
9292
- name: readiness-port
93-
containerPort: {{ .Values.controller.readyStatus.port}}
93+
containerPort: {{ .Values.controller.readyStatus.port }}
9494
readinessProbe:
9595
httpGet:
9696
path: /nginx-ready
9797
port: readiness-port
9898
periodSeconds: 1
99+
initialDelaySeconds: {{ .Values.controller.readyStatus.initialDelaySeconds }}
99100
{{- end }}
100101
resources:
101102
{{ toYaml .Values.controller.resources | indent 10 }}
@@ -206,7 +207,7 @@ spec:
206207
- -spire-agent-address=/run/spire/sockets/agent.sock
207208
- -enable-internal-routes={{ .Values.nginxServiceMesh.enableEgress }}
208209
{{- end }}
209-
{{- if .Values.controller.extraContainers }}
210+
{{- if .Values.controller.extraContainers }}
210211
{{ toYaml .Values.controller.extraContainers | nindent 6 }}
211212
{{- end }}
212213
{{- if .Values.controller.initContainers }}

deployments/helm-chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ controller:
366366
## Set the port where the readiness endpoint is exposed.
367367
port: 8081
368368

369+
## The number of seconds after the Ingress Controller pod has started before readiness probes are initiated.
370+
initialDelaySeconds: 0
371+
369372
## Enable collection of latency metrics for upstreams. Requires prometheus.create.
370373
enableLatencyMetrics: false
371374

docs/content/installation/installation-with-helm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ The following tables lists the configurable parameters of the NGINX Ingress Cont
230230
|``controller.pod.annotations`` | The annotations of the Ingress Controller pod. | {} |
231231
|``controller.readyStatus.enable`` | Enables the readiness endpoint `"/nginx-ready"`. The endpoint returns a success code when NGINX has loaded all the config after the startup. This also configures a readiness probe for the Ingress Controller pods that uses the readiness endpoint. | true |
232232
|``controller.readyStatus.port`` | The HTTP port for the readiness endpoint. | 8081 |
233+
|``controller.readyStatus.initialDelaySeconds`` | The number of seconds after the Ingress Controller pod has started before readiness probes are initiated. | 0 |
233234
|``controller.enableLatencyMetrics`` | Enable collection of latency metrics for upstreams. Requires ``prometheus.create``. | false |
234235
|``controller.minReadySeconds`` | Specifies the minimum number of seconds for which a newly created Pod should be ready, without any of its containers crashing, for it to be considered available. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#min-ready-seconds) | 0 |
235236
|``controller.strategy`` | Specifies the strategy used to replace old Pods with new ones. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) | {} |

0 commit comments

Comments
 (0)
0