Allow override kubernetes probes (#117)
- Allow overriding liveness and readiness probe - Add optional startup probe closes #118 Reviewed-on: gitea/helm-chart#117 Reviewed-by: luhahn <luhahn@noreply.gitea.io> Reviewed-by: lafriks <lafriks@noreply.gitea.io> Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Co-committed-by: Michael Kriese <michael.kriese@visualon.de>
This commit was merged in pull request #117.
This commit is contained in:
@@ -71,21 +71,45 @@ spec: | ||||
- name: profiler | ||||
containerPort: 6060 | ||||
{{- end }} | ||||
{{- if .Values.gitea.livenessProbe.enabled }} | ||||
livenessProbe: | ||||
tcpSocket: | ||||
port: http | ||||
initialDelaySeconds: 200 | ||||
timeoutSeconds: 1 | ||||
periodSeconds: 10 | ||||
successThreshold: 1 | ||||
failureThreshold: 10 | ||||
initialDelaySeconds: {{ .Values.gitea.livenessProbe.initialDelaySeconds }} | ||||
periodSeconds: {{ .Values.gitea.livenessProbe.periodSeconds }} | ||||
timeoutSeconds: {{ .Values.gitea.livenessProbe.timeoutSeconds }} | ||||
successThreshold: {{ .Values.gitea.livenessProbe.successThreshold }} | ||||
failureThreshold: {{ .Values.gitea.livenessProbe.failureThreshold }} | ||||
{{- else if .Values.gitea.customLivenessProbe }} | ||||
livenessProbe: | ||||
{{- toYaml .Values.gitea.customLivenessProbe | nindent 12 }} | ||||
{{- end }} | ||||
{{- if .Values.gitea.readinessProbe.enabled }} | ||||
readinessProbe: | ||||
tcpSocket: | ||||
port: http | ||||
initialDelaySeconds: 5 | ||||
periodSeconds: 10 | ||||
successThreshold: 1 | ||||
failureThreshold: 3 | ||||
initialDelaySeconds: {{ .Values.gitea.readinessProbe.initialDelaySeconds }} | ||||
periodSeconds: {{ .Values.gitea.readinessProbe.periodSeconds }} | ||||
timeoutSeconds: {{ .Values.gitea.readinessProbe.timeoutSeconds }} | ||||
successThreshold: {{ .Values.gitea.readinessProbe.successThreshold }} | ||||
failureThreshold: {{ .Values.gitea.readinessProbe.failureThreshold }} | ||||
{{- else if .Values.gitea.customReadinessProbe }} | ||||
readinessProbe: | ||||
{{- toYaml .Values.gitea.customReadinessProbe | nindent 12 }} | ||||
{{- end }} | ||||
{{- if .Values.gitea.startupProbe.enabled }} | ||||
startupProbe: | ||||
tcpSocket: | ||||
port: http | ||||
initialDelaySeconds: {{ .Values.gitea.startupProbe.initialDelaySeconds }} | ||||
periodSeconds: {{ .Values.gitea.startupProbe.periodSeconds }} | ||||
timeoutSeconds: {{ .Values.gitea.startupProbe.timeoutSeconds }} | ||||
successThreshold: {{ .Values.gitea.startupProbe.successThreshold }} | ||||
failureThreshold: {{ .Values.gitea.startupProbe.failureThreshold }} | ||||
{{- else if .Values.gitea.customStartupProbe }} | ||||
startupProbe: | ||||
{{- toYaml .Values.gitea.customStartupProbe | nindent 12 }} | ||||
{{- end }} | ||||
resources: | ||||
{{- toYaml .Values.resources | nindent 12 }} | ||||
securityContext: | ||||
| ||||
Reference in New Issue
Block a user