diff --git a/charts/devtron/README.md b/charts/devtron/README.md index 487b57407f..eab35ff23b 100644 --- a/charts/devtron/README.md +++ b/charts/devtron/README.md @@ -138,3 +138,4 @@ example of DEX_CONFIG is **Please Note:** Ensure that the cluster has access to the DEFAULT_CACHE_BUCKET, DEFAULT_BUILD_LOGS_BUCKET, CHARTMUSEUM_STORAGE_AMAZON_BUCKET and AWS secrets backends (SSM & secrets manager) +The main Devtron deployment probe timings can be customized with `components.devtron.livenessProbe` and `components.devtron.readinessProbe` in the chart `values.yaml`. diff --git a/charts/devtron/templates/devtron.yaml b/charts/devtron/templates/devtron.yaml index d1392fd129..5ef53a6f9b 100644 --- a/charts/devtron/templates/devtron.yaml +++ b/charts/devtron/templates/devtron.yaml @@ -281,25 +281,17 @@ spec: - ' curl -X POST -H "Content-Type: application/json" -d ''{"eventType": "SIG_TERM"}'' localhost:8080/orchestrator/telemetry/summary' livenessProbe: - failureThreshold: 3 httpGet: path: /health port: {{ $.Values.components.devtron.healthPort}} scheme: HTTP - initialDelaySeconds: 20 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 5 +{{ toYaml $.Values.components.devtron.livenessProbe | indent 12 }} readinessProbe: - failureThreshold: 3 httpGet: path: /health port: {{ $.Values.components.devtron.healthPort}} scheme: HTTP - initialDelaySeconds: 20 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 5 +{{ toYaml $.Values.components.devtron.readinessProbe | indent 12 }} ports: - name: devtron containerPort: 8080 diff --git a/charts/devtron/values.yaml b/charts/devtron/values.yaml index 3f71e8db22..4fadbb23ab 100644 --- a/charts/devtron/values.yaml +++ b/charts/devtron/values.yaml @@ -107,6 +107,18 @@ components: imagePullPolicy: IfNotPresent customOverrides: {} healthPort: 8080 + livenessProbe: + failureThreshold: 3 + initialDelaySeconds: 20 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 + readinessProbe: + failureThreshold: 3 + initialDelaySeconds: 20 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 podSecurityContext: fsGroup: 1001 runAsGroup: 1001