mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
* refactor(helm): move litellm-helm chart to helm/ and drop deploy folder * chore(gitignore): drop ignore on vendored litellm-helm subcharts
33 lines
1 KiB
YAML
33 lines
1 KiB
YAML
{{- /*
|
|
PodDisruptionBudget for LiteLLM proxy
|
|
Controlled via .Values.pdb.enabled and .Values.pdb.{minAvailable|maxUnavailable}
|
|
Only one of minAvailable / maxUnavailable should be set. If both are set, minAvailable wins.
|
|
*/ -}}
|
|
{{- if .Values.pdb.enabled }}
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "litellm.fullname" . }}
|
|
labels:
|
|
{{- include "litellm.labels" . | nindent 4 }}
|
|
{{- with .Values.pdb.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.pdb.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
{{- /* Match the Deployment selector to target the same pod set */ -}}
|
|
{{- include "litellm.selectorLabels" . | nindent 6 }}
|
|
{{- if .Values.pdb.minAvailable }}
|
|
minAvailable: {{ .Values.pdb.minAvailable }}
|
|
{{- else if .Values.pdb.maxUnavailable }}
|
|
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
|
|
{{- else }}
|
|
# Safe default if enabled but not configured
|
|
maxUnavailable: 1
|
|
{{- end }}
|
|
{{- end }}
|