From 3899135dd2baf5c1ebc7961004c449a463cdbe96 Mon Sep 17 00:00:00 2001 From: Khwunchai Jaengsawang Date: Tue, 13 Aug 2019 15:12:00 +0700 Subject: [PATCH] [stable/airflow] Add readinessProbe (#15138) * Add readinessProbe Signed-off-by: Khwunchai Jaengsawang * Bump chart version Signed-off-by: Khwunchai Jaengsawang --- stable/airflow/Chart.yaml | 2 +- stable/airflow/requirements.lock | 9 +++++++++ stable/airflow/templates/deployments-web.yaml | 9 +++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 stable/airflow/requirements.lock diff --git a/stable/airflow/Chart.yaml b/stable/airflow/Chart.yaml index 8d4bad0fae..4b0af19055 100644 --- a/stable/airflow/Chart.yaml +++ b/stable/airflow/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Airflow is a platform to programmatically author, schedule and monitor workflows name: airflow -version: 4.0.1 +version: 4.0.2 appVersion: 1.10.3 icon: https://airflow.apache.org/_images/pin_large.png home: https://airflow.apache.org/ diff --git a/stable/airflow/requirements.lock b/stable/airflow/requirements.lock new file mode 100644 index 0000000000..fe05c3d622 --- /dev/null +++ b/stable/airflow/requirements.lock @@ -0,0 +1,9 @@ +dependencies: +- name: postgresql + repository: https://kubernetes-charts.storage.googleapis.com/ + version: 0.13.1 +- name: redis + repository: https://kubernetes-charts.storage.googleapis.com/ + version: 7.0.0 +digest: sha256:b69868c9f0a2f73e76764c7aef0e738d77c4af2010d0d2b808fa82bedd239389 +generated: "2019-05-23T17:08:16.898581+07:00" diff --git a/stable/airflow/templates/deployments-web.yaml b/stable/airflow/templates/deployments-web.yaml index 2cfcbe38ef..a3758e46fe 100644 --- a/stable/airflow/templates/deployments-web.yaml +++ b/stable/airflow/templates/deployments-web.yaml @@ -152,6 +152,15 @@ spec: timeoutSeconds: 1 successThreshold: 1 failureThreshold: 5 + readinessProbe: + httpGet: + path: "{{ .Values.ingress.web.path }}/health" + port: web + initialDelaySeconds: {{ .Values.web.initialDelaySeconds }} + periodSeconds: 60 + timeoutSeconds: 1 + successThreshold: 1 + failureThreshold: 5 {{- if .Values.airflow.extraContainers }} {{ toYaml .Values.airflow.extraContainers | indent 8 }} {{- end }}