add probes

This commit is contained in:
Waylon S. Walker 2025-02-22 20:26:17 -06:00
parent 4f78ac8493
commit 5507c7c7dc

View file

@ -16,7 +16,7 @@ spec:
service: {{ .Values.name }} service: {{ .Values.name }}
spec: spec:
containers: containers:
- image: {{ .Values.image.repository }}/{{ .Values.name }}:{{ .Values.image.tag }} - image: {{ .Values.image.repository }}/{{ .Values.image.name | default .Values.name }}:{{ .Values.image.tag }}
name: {{ .Values.name }} name: {{ .Values.name }}
ports: ports:
- containerPort: {{ .Values.port }} - containerPort: {{ .Values.port }}
@ -28,5 +28,23 @@ spec:
limits: limits:
cpu: {{ .Values.cpuLimit }} cpu: {{ .Values.cpuLimit }}
memory: {{ .Values.memoryLimit }} memory: {{ .Values.memoryLimit }}
livenessProbe:
httpGet:
path: /health
port: {{ .Values.port }}
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /ready
port: {{ .Values.port }}
initialDelaySeconds: 5
periodSeconds: 10
startupProbe:
httpGet:
path: /ready
port: {{ .Values.port }}
failureThreshold: 30
periodSeconds: 10
imagePullSecrets: imagePullSecrets:
- name: {{ .Values.imagePullSecret }} - name: {{ .Values.imagePullSecret }}