diff --git a/gradle/changelog/helm_chart.yaml b/gradle/changelog/helm_chart.yaml new file mode 100644 index 0000000000..7ee22c7d0e --- /dev/null +++ b/gradle/changelog/helm_chart.yaml @@ -0,0 +1,2 @@ +- type: added + description: Add variables for liveness probe and readiness probe delay in helm chart diff --git a/scm-packaging/helm/src/main/chart/templates/deployment.yaml b/scm-packaging/helm/src/main/chart/templates/deployment.yaml index b38409e341..8e5f46d581 100644 --- a/scm-packaging/helm/src/main/chart/templates/deployment.yaml +++ b/scm-packaging/helm/src/main/chart/templates/deployment.yaml @@ -84,12 +84,12 @@ spec: httpGet: path: /scm port: http - initialDelaySeconds: 30 + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} readinessProbe: httpGet: path: /scm port: http - initialDelaySeconds: 10 + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} resources: {{ toYaml .Values.resources | indent 12 }} volumeMounts: diff --git a/scm-packaging/helm/src/main/chart/values.yaml b/scm-packaging/helm/src/main/chart/values.yaml index 8ac25e2ddd..06db3a9a63 100644 --- a/scm-packaging/helm/src/main/chart/values.yaml +++ b/scm-packaging/helm/src/main/chart/values.yaml @@ -107,6 +107,12 @@ persistence: # persistence.size -- The size of the PVC size: 40Gi +livenessProbe: + initialDelaySeconds: 60 + +readinessProbe: + initialDelaySeconds: 20 + # resources -- Resources allocation (Requests and Limits) resources: {} # We usually recommend not to specify default resources and to leave this as a conscious