feat(template): added lifecycle probes

This commit is contained in:
jklein committed 2026-04-13 12:21:52 +02:00
1 parent 81743b23ed
commit 732da57846
3 files changed
+36 -2

No files matched your search

+6 -1
View File
@@ -30,7 +30,12 @@ spec:
- containerPort: 80
protocol: TCP
name: http
# TODO: Add liveness and readiness probes
livenessProbe:
{{ toYaml .Values.xxx.livenessProbe | nindent 12 }}
readinessProbe:
{{ toYaml .Values.xxx.readinessProbe | nindent 12 }}
startupProbe:
{{ toYaml .Values.xxx.startupProbe | nindent 12 }}
resources:
{{ toYaml .Values.xxx.resources | nindent 12 }}
securityContext:
+6 -1
View File
@@ -31,7 +31,12 @@ spec:
- containerPort: 80
protocol: TCP
name: http
# TODO: Add liveness and readiness probes
livenessProbe:
{{ toYaml .Values.xxx.livenessProbe | nindent 12 }}
readinessProbe:
{{ toYaml .Values.xxx.readinessProbe | nindent 12 }}
startupProbe:
{{ toYaml .Values.xxx.startupProbe | nindent 12 }}
{{- with .Values.xxx.resources }}
resources:
{{ toYaml . | nindent 12 }}
+24
View File
@@ -11,6 +11,30 @@ xxx:
cpu: 1
memory: 768Mi
ephemeral-storage: 100Mi
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
startupProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
storage:
amount: 10Gi