add custom health probes in helm chart

This commit is contained in:
mohittalele 2024-11-21 16:50:42 +01:00
parent ddfe687b13
commit 44e28ee291
2 changed files with 23 additions and 11 deletions

View file

@ -108,20 +108,12 @@ spec:
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /health/liveliness
port: http
{{- .Values.livenessProbe | toYaml | nindent 12 }}
readinessProbe:
httpGet:
path: /health/readiness
port: http
{{- .Values.readinessProbe | toYaml | nindent 12 }}
# Give the container time to start up. Up to 5 minutes (10 * 30 seconds)
startupProbe:
httpGet:
path: /health/readiness
port: http
failureThreshold: 30
periodSeconds: 10
{{- .Values.startupProbe | toYaml | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:

View file

@ -41,6 +41,26 @@ securityContext: {}
# runAsNonRoot: true
# runAsUser: 1000
# health probes for litellmproxy
livenessProbe:
httpGet:
path: /health/liveliness
port: http
readinessProbe:
httpGet:
path: /health/readiness
port: http
# Give the container time to start up. Up to 5 minutes (10 * 30 seconds)
startupProbe:
httpGet:
path: /health/readiness
port: http
failureThreshold: 30
periodSeconds: 10
# A list of Kubernetes Secret objects that will be exported to the LiteLLM proxy
# pod as environment variables. These secrets can then be referenced in the
# configuration file (or "litellm" ConfigMap) with `os.environ/<Env Var Name>`