Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flower K8s Probe config #37528

Merged
merged 8 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 8 additions & 6 deletions chart/templates/flower/flower-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ spec:
- name: flower-ui
containerPort: {{ .Values.ports.flowerUI }}
livenessProbe:
failureThreshold: 10
failureThreshold: {{ .Values.flower.livenessProbe.failureThreshold }}
exec:
command:
- curl
Expand All @@ -125,10 +125,11 @@ spec:
- $AIRFLOW__CELERY__FLOWER_BASIC_AUTH
{{- end }}
- {{ printf "localhost:%s" (.Values.ports.flowerUI | toString) }}
initialDelaySeconds: 10
periodSeconds: 5
initialDelaySeconds: {{ .Values.flower.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.flower.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.flower.livenessProbe.timeoutSeconds }}
readinessProbe:
failureThreshold: 10
failureThreshold: {{ .Values.flower.readinessProbe.failureThreshold }}
exec:
command:
- curl
Expand All @@ -137,8 +138,9 @@ spec:
- $AIRFLOW__CELERY__FLOWER_BASIC_AUTH
{{- end }}
- {{ printf "localhost:%s" (.Values.ports.flowerUI | toString) }}
initialDelaySeconds: 10
periodSeconds: 5
initialDelaySeconds: {{ .Values.flower.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.flower.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.flower.readinessProbe.timeoutSeconds }}
envFrom:
{{- include "custom_airflow_environment_from" . | default "\n []" | indent 10 }}
env:
Expand Down
54 changes: 54 additions & 0 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4955,6 +4955,60 @@
"type": "boolean",
"default": false
},
"livenessProbe": {
"description": "Liveness probe configuration.",
"type": "object",
"additionalProperties": false,
"properties": {
"initialDelaySeconds": {
"description": "Flower Liveness probe initial delay.",
"type": "integer",
"default": 10
},
"timeoutSeconds": {
"description": "Flower Liveness probe timeout seconds.",
"type": "integer",
"default": 5
},
"failureThreshold": {
"description": "Flower Liveness probe failure threshold.",
"type": "integer",
"default": 10
},
"periodSeconds": {
"description": "Flower Liveness probe period seconds.",
"type": "integer",
"default": 5
}
}
},
"readinessProbe": {
"description": "Readiness probe configuration.",
"type": "object",
"additionalProperties": false,
"properties": {
"initialDelaySeconds": {
"description": "Flower Readiness probe initial delay.",
"type": "integer",
"default": 10
},
"timeoutSeconds": {
"description": "Flower Readiness probe timeout seconds.",
"type": "integer",
"default": 5
},
"failureThreshold": {
"description": "Flower Readiness probe failure threshold.",
"type": "integer",
"default": 10
},
"periodSeconds": {
"description": "Flower Readiness probe period seconds.",
"type": "integer",
"default": 5
}
}
},
"revisionHistoryLimit": {
"description": "Number of old replicasets to retain.",
"type": [
Expand Down
13 changes: 13 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,19 @@ flower:
# Enable flower.
# If True, and using CeleryExecutor/CeleryKubernetesExecutor, will deploy flower app.
enabled: false

livenessProbe:
initialDelaySeconds: 10
timeoutSeconds: 5
failureThreshold: 10
periodSeconds: 5

readinessProbe:
initialDelaySeconds: 10
timeoutSeconds: 5
failureThreshold: 10
periodSeconds: 5

# Max number of old replicasets to retain
revisionHistoryLimit: ~

Expand Down