feat(template): added lifecycle probes
This commit is contained in:
3 files changed
+36
-2
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user