Files
taiji-AI-PAD/k8s/litellm-gateway.yaml
T
2025-12-30 06:22:47 +00:00

95 lines
2.2 KiB
YAML

# LiteLLM Gateway Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: litellm-gateway
namespace: taiji-ai
labels:
app: litellm-gateway
spec:
replicas: 2
selector:
matchLabels:
app: litellm-gateway
template:
metadata:
labels:
app: litellm-gateway
spec:
containers:
- name: litellm-gateway
image: taiji.azurecr.io/litellm-gateway:latest
imagePullPolicy: Always
ports:
- containerPort: 4000
name: http
env:
- name: LITELLM_MASTER_KEY
valueFrom:
secretKeyRef:
name: taiji-secrets
key: litellm-master-key
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: taiji-secrets
key: database-url
- name: REDIS_URL
valueFrom:
secretKeyRef:
name: taiji-secrets
key: redis-url
- name: OPENROUTER_API_KEY
valueFrom:
secretKeyRef:
name: taiji-secrets
key: openrouter-api-key
- name: OPENROUTER_BASE_URL
valueFrom:
configMapKeyRef:
name: taiji-config
key: OPENROUTER_BASE_URL
resources:
requests:
memory: "256Mi"
cpu: "200m"
limits:
memory: "1Gi"
cpu: "1000m"
livenessProbe:
httpGet:
path: /health/liveliness
port: 4000
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
failureThreshold: 5
readinessProbe:
httpGet:
path: /health/readiness
port: 4000
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 3
volumeMounts:
- name: config-volume
mountPath: /app/config
volumes:
- name: config-volume
configMap:
name: litellm-config
optional: true
---
apiVersion: v1
kind: Service
metadata:
name: litellm-gateway
namespace: taiji-ai
spec:
selector:
app: litellm-gateway
ports:
- name: http
port: 4000
targetPort: 4000