This is an automated email from the ASF dual-hosted git repository.
rom pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 073353b57b3 Add optional configuration for startupProbe
initialDelaySeconds (#47094)
073353b57b3 is described below
commit 073353b57b3c6cccad28e561a83d393032bafd94
Author: oryanperl <[email protected]>
AuthorDate: Fri Mar 7 02:22:36 2025 +0200
Add optional configuration for startupProbe initialDelaySeconds (#47094)
---
.../templates/api-server/api-server-deployment.yaml | 1 +
chart/templates/flower/flower-deployment.yaml | 1 +
chart/templates/scheduler/scheduler-deployment.yaml | 1 +
chart/templates/webserver/webserver-deployment.yaml | 1 +
chart/values.schema.json | 20 ++++++++++++++++++++
chart/values.yaml | 4 ++++
6 files changed, 28 insertions(+)
diff --git a/chart/templates/api-server/api-server-deployment.yaml
b/chart/templates/api-server/api-server-deployment.yaml
index b4cf2cd4461..6e9636523d9 100644
--- a/chart/templates/api-server/api-server-deployment.yaml
+++ b/chart/templates/api-server/api-server-deployment.yaml
@@ -206,6 +206,7 @@ spec:
path: /public/version
port: {{ .Values.ports.apiServer }}
scheme: {{ .Values.apiServer.startupProbe.scheme | default
"http" }}
+ initialDelaySeconds: {{
.Values.apiServer.startupProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.apiServer.startupProbe.timeoutSeconds }}
failureThreshold: {{
.Values.apiServer.startupProbe.failureThreshold }}
periodSeconds: {{ .Values.apiServer.startupProbe.periodSeconds }}
diff --git a/chart/templates/flower/flower-deployment.yaml
b/chart/templates/flower/flower-deployment.yaml
index 35413eee851..7b6750921e5 100644
--- a/chart/templates/flower/flower-deployment.yaml
+++ b/chart/templates/flower/flower-deployment.yaml
@@ -152,6 +152,7 @@ spec:
{{- end }}
- {{ printf "localhost:%s" (.Values.ports.flowerUI | toString)
}}
periodSeconds: {{ .Values.flower.startupProbe.periodSeconds }}
+ initialDelaySeconds: {{
.Values.flower.startupProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.flower.startupProbe.timeoutSeconds }}
envFrom:
{{- include "custom_airflow_environment_from" . | default "\n []" |
indent 10 }}
diff --git a/chart/templates/scheduler/scheduler-deployment.yaml
b/chart/templates/scheduler/scheduler-deployment.yaml
index 4df2f82b767..b18d02363f1 100644
--- a/chart/templates/scheduler/scheduler-deployment.yaml
+++ b/chart/templates/scheduler/scheduler-deployment.yaml
@@ -211,6 +211,7 @@ spec:
{{- include "scheduler_liveness_check_command" . | indent 14
}}
{{- end }}
startupProbe:
+ initialDelaySeconds: {{
.Values.scheduler.startupProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.scheduler.startupProbe.timeoutSeconds }}
failureThreshold: {{
.Values.scheduler.startupProbe.failureThreshold }}
periodSeconds: {{ .Values.scheduler.startupProbe.periodSeconds }}
diff --git a/chart/templates/webserver/webserver-deployment.yaml
b/chart/templates/webserver/webserver-deployment.yaml
index e14b13e4582..6f5eef24682 100644
--- a/chart/templates/webserver/webserver-deployment.yaml
+++ b/chart/templates/webserver/webserver-deployment.yaml
@@ -248,6 +248,7 @@ spec:
value: {{ regexReplaceAll ":\\d+$" (urlParse (tpl
.Values.config.webserver.base_url .)).host "" }}
{{- end }}
scheme: {{ .Values.webserver.startupProbe.scheme | default
"http" }}
+ initialDelaySeconds: {{
.Values.webserver.startupProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.webserver.startupProbe.timeoutSeconds }}
failureThreshold: {{
.Values.webserver.startupProbe.failureThreshold }}
periodSeconds: {{ .Values.webserver.startupProbe.periodSeconds }}
diff --git a/chart/values.schema.json b/chart/values.schema.json
index edd019cfaf5..f38cbcb0c92 100644
--- a/chart/values.schema.json
+++ b/chart/values.schema.json
@@ -2505,6 +2505,11 @@
"type": "object",
"additionalProperties": false,
"properties": {
+ "initialDelaySeconds": {
+ "description": "Number of seconds after the
container has started before startup probes are initiated.",
+ "type": "integer",
+ "default": 0
+ },
"timeoutSeconds": {
"description": "Number of seconds after which the
probe times out. Minimum value is 1 seconds.",
"type": "integer",
@@ -4794,6 +4799,11 @@
"type": "object",
"additionalProperties": false,
"properties": {
+ "initialDelaySeconds": {
+ "description": "API server Startup probe initial
delay seconds.",
+ "type": "integer",
+ "default": 0
+ },
"timeoutSeconds": {
"description": "API server Startup probe timeout
seconds.",
"type": "integer",
@@ -5481,6 +5491,11 @@
"type": "object",
"additionalProperties": false,
"properties": {
+ "initialDelaySeconds": {
+ "description": "Webserver Startup probe initial
delay seconds.",
+ "type": "integer",
+ "default": 0
+ },
"timeoutSeconds": {
"description": "Webserver Startup probe timeout
seconds.",
"type": "integer",
@@ -6257,6 +6272,11 @@
"type": "object",
"additionalProperties": false,
"properties": {
+ "initialDelaySeconds": {
+ "description": "Flower Startup probe initial delay
seconds.",
+ "type": "integer",
+ "default": 0
+ },
"timeoutSeconds": {
"description": "Flower Startup probe timeout
seconds.",
"type": "integer",
diff --git a/chart/values.yaml b/chart/values.yaml
index 25d67fced69..b1d54597b31 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -897,6 +897,7 @@ scheduler:
# Wait for at most 1 minute (6*10s) for the scheduler container to startup.
# livenessProbe kicks in after the first successful startupProbe
startupProbe:
+ initialDelaySeconds: 0
failureThreshold: 6
periodSeconds: 10
timeoutSeconds: 20
@@ -1346,6 +1347,7 @@ apiServer:
scheme: HTTP
startupProbe:
+ initialDelaySeconds: 0
timeoutSeconds: 20
failureThreshold: 6
periodSeconds: 10
@@ -1382,6 +1384,7 @@ webserver:
# Wait for at most 1 minute (6*10s) for the webserver container to startup.
# livenessProbe kicks in after the first successful startupProbe
startupProbe:
+ initialDelaySeconds: 0
timeoutSeconds: 20
failureThreshold: 6
periodSeconds: 10
@@ -1977,6 +1980,7 @@ flower:
# Wait for at most 1 minute (6*10s) for the flower container to startup.
# livenessProbe kicks in after the first successful startupProbe
startupProbe:
+ initialDelaySeconds: 0
timeoutSeconds: 20
failureThreshold: 6
periodSeconds: 10