--- apiVersion: apps/v1 kind: Deployment metadata: name: litellm namespace: litellm spec: selector: matchLabels: app: litellm template: metadata: labels: app: litellm spec: containers: - name: litellm image: docker.litellm.ai/berriai/litellm-database:main-stable imagePullPolicy: Always args: - --config - /app/config.yaml - --port - "4000" - --num_workers - "8" ports: - containerPort: 4000 name: http protocol: TCP envFrom: - secretRef: name: litellm-credentials livenessProbe: httpGet: path: /health/liveliness port: 4000 failureThreshold: 3 initialDelaySeconds: 30 periodSeconds: 30 successThreshold: 1 timeoutSeconds: 5 readinessProbe: httpGet: path: /health/readiness port: 4000 failureThreshold: 3 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 resources: limits: cpu: "1" memory: 2Gi requests: cpu: 250m memory: 512Mi volumeMounts: - mountPath: /app/config.yaml name: config subPath: config.yaml restartPolicy: Always volumes: - name: config configMap: name: litellm-config