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" memory: "512Mi"
cpu: "250m" cpu: "250m"
limits: limits:
memory: "1Gi" memory: "2Gi"
cpu: "500m" cpu: "1000m"
volumes: volumes:
- name: config-volume - name: config-volume
configMap: configMap:

View File

@@ -15,9 +15,10 @@ spec:
labels: labels:
app: prometheus app: prometheus
spec: 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: nodeSelector:
hardware: high-memory kubernetes.io/os: linux
kubernetes.io/arch: amd64
serviceAccountName: prometheus serviceAccountName: prometheus
containers: containers:
- name: prometheus - name: prometheus
@@ -39,10 +40,10 @@ spec:
mountPath: /prometheus mountPath: /prometheus
resources: resources:
requests: requests:
memory: "1Gi" memory: "512Mi"
cpu: "500m" cpu: "500m"
limits: limits:
memory: "2Gi" memory: "1Gi"
cpu: "1000m" cpu: "1000m"
volumes: volumes:
- name: prometheus-config - name: prometheus-config