diff --git a/charts/devtron/README.md b/charts/devtron/README.md index 487b57407f..145a552762 100644 --- a/charts/devtron/README.md +++ b/charts/devtron/README.md @@ -138,3 +138,25 @@ 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) +### Devtron probe configuration + +The liveness and readiness probe timings for the main Devtron deployment can be customized under `components.devtron` while retaining the `/health` endpoint configured by the chart: + +```yaml +components: + devtron: + livenessProbe: + failureThreshold: 3 + initialDelaySeconds: 60 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 + readinessProbe: + failureThreshold: 3 + initialDelaySeconds: 60 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 +``` + +If these values are not overridden, the chart continues to use the existing probe timings from `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..96bc30a627 100644 --- a/charts/devtron/values.yaml +++ b/charts/devtron/values.yaml @@ -107,6 +107,19 @@ components: imagePullPolicy: IfNotPresent customOverrides: {} healthPort: 8080 + # Probe timings for the main Devtron deployment's /health endpoint. + 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