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
|
- containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
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:
|
resources:
|
||||||
{{ toYaml .Values.xxx.resources | nindent 12 }}
|
{{ toYaml .Values.xxx.resources | nindent 12 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@@ -31,7 +31,12 @@ spec:
|
|||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
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 }}
|
{{- with .Values.xxx.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml . | nindent 12 }}
|
{{ toYaml . | nindent 12 }}
|
||||||
|
|||||||
@@ -11,6 +11,30 @@ xxx:
|
|||||||
cpu: 1
|
cpu: 1
|
||||||
memory: 768Mi
|
memory: 768Mi
|
||||||
ephemeral-storage: 100Mi
|
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:
|
storage:
|
||||||
amount: 10Gi
|
amount: 10Gi
|
||||||
|
|||||||
Reference in new issue
Block a user