1 Commits

Author SHA1 Message Date
platform-engineer
9c134d5dd0 fix(litellm): add memory and CPU resource limits to prevent OOMKilled
Litellm pod was being killed by the kernel OOM killer (7 restarts, last
termination reason: OOMKilled). Added explicit resource requests (512Mi/250m)
and limits (2Gi/1000m) to ensure the container gets bounded memory.
2026-07-21 21:59:15 +00:00
2 changed files with 7 additions and 6 deletions

View File

@@ -117,8 +117,8 @@ spec:
memory: "512Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
memory: "2Gi"
cpu: "1000m"
volumes:
- name: config-volume
configMap:

View File

@@ -15,9 +15,10 @@ spec:
labels:
app: prometheus
spec:
# Prevent scheduling on Raspberry Pi due to resource requirements (512Mi-1Gi memory, 500m-1000m CPU)
# Target the nucbox (amd64, 24Gi RAM) which is the only node with enough memory for Prometheus.
nodeSelector:
hardware: high-memory
kubernetes.io/os: linux
kubernetes.io/arch: amd64
serviceAccountName: prometheus
containers:
- name: prometheus
@@ -39,10 +40,10 @@ spec:
mountPath: /prometheus
resources:
requests:
memory: "1Gi"
memory: "512Mi"
cpu: "500m"
limits:
memory: "2Gi"
memory: "1Gi"
cpu: "1000m"
volumes:
- name: prometheus-config