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
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
{{- if and .Values.keda.enabled (not .Values.autoscaling.enabled) }}
|
|
apiVersion: keda.sh/v1alpha1
|
|
kind: ScaledObject
|
|
metadata:
|
|
name: {{ include "litellm.fullname" . }}
|
|
labels:
|
|
{{- include "litellm.labels" . | nindent 4 }}
|
|
{{- if .Values.keda.scaledObject.annotations }}
|
|
annotations: {{ toYaml .Values.keda.scaledObject.annotations | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
scaleTargetRef:
|
|
name: {{ include "litellm.fullname" . }}
|
|
pollingInterval: {{ .Values.keda.pollingInterval }}
|
|
cooldownPeriod: {{ .Values.keda.cooldownPeriod }}
|
|
minReplicaCount: {{ .Values.keda.minReplicas }}
|
|
maxReplicaCount: {{ .Values.keda.maxReplicas }}
|
|
{{- with .Values.keda.fallback }}
|
|
fallback:
|
|
failureThreshold: {{ .failureThreshold | default 3 }}
|
|
replicas: {{ .replicas | default $.Values.keda.maxReplicas }}
|
|
{{- end }}
|
|
triggers:
|
|
{{- with .Values.keda.triggers }}
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
advanced:
|
|
restoreToOriginalReplicaCount: {{ .Values.keda.restoreToOriginalReplicaCount }}
|
|
{{- if .Values.keda.behavior }}
|
|
horizontalPodAutoscalerConfig:
|
|
behavior:
|
|
{{- with .Values.keda.behavior }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
{{- end }}
|