diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 52f91bf..d9c9422 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -142,20 +142,18 @@ spec: - name: cluster containerPort: {{ .Values.service.clusterPort }} protocol: TCP + {{- with .Values.livenessProbe }} livenessProbe: - httpGet: - path: /c/portal/robots - port: http - failureThreshold: 20 - initialDelaySeconds: 30 - periodSeconds: 10 + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.readinessProbe }} readinessProbe: - httpGet: - path: /c/portal/robots - port: http - failureThreshold: 20 - initialDelaySeconds: 30 - periodSeconds: 10 + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.startupProbe }} + startupProbe: + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/values.yaml b/values.yaml index 6735ca9..2990a52 100644 --- a/values.yaml +++ b/values.yaml @@ -227,6 +227,28 @@ objectstorage: # hosts: # - chart-example.local +livenessProbe: + httpGet: + path: /c/portal/robots + port: http + failureThreshold: 2 + initialDelaySeconds: 10 + periodSeconds: 5 +readinessProbe: + httpGet: + path: /c/portal/robots + port: http + failureThreshold: 2 + initialDelaySeconds: 10 + periodSeconds: 5 +startupProbe: + httpGet: + path: /c/portal/robots + port: http + failureThreshold: 30 + initialDelaySeconds: 20 + periodSeconds: 5 + ################################################################################ #### Less common fine tuning options ########################################### ################################################################################