Skip to content

Commit 18c66a8

Browse files
jeremyederclaude
andcommitted
fix: increase production frontend memory limits to prevent OOMKills
- Frontend memory: 512Mi → 2Gi limit, 256Mi → 512Mi request - OAuth proxy limits: 256Mi request, 512Mi limit (NEW - prevent unbounded growth) Fixes sawtooth memory pattern causing pod restarts and connection errors. Matches LiteLLM precedent (commit b43bf39: 512Mi → 2Gi, 4x increase). Production only - other environments not affected by OOMKills. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent d061526 commit 18c66a8

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

components/manifests/overlays/production/frontend-oauth-deployment-patch.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Patch to add OAuth proxy sidecar to frontend deployment
1+
# Patch for production frontend deployment
2+
# - Adds OAuth proxy sidecar for authentication
3+
# - Overrides resource limits to prevent OOMKills (sawtooth memory pattern)
24
apiVersion: apps/v1
35
kind: Deployment
46
metadata:
@@ -7,6 +9,15 @@ spec:
79
template:
810
spec:
911
containers:
12+
# Frontend container - increased limits to prevent OOMKills
13+
- name: frontend
14+
resources:
15+
requests:
16+
memory: 512Mi
17+
cpu: 200m
18+
limits:
19+
memory: 2Gi
20+
cpu: 1000m
1021
# OAuth proxy sidecar
1122
- name: oauth-proxy
1223
image: quay.io/openshift/origin-oauth-proxy:4.14
@@ -46,6 +57,13 @@ spec:
4657
periodSeconds: 5
4758
successThreshold: 1
4859
failureThreshold: 3
60+
resources:
61+
requests:
62+
memory: 256Mi
63+
cpu: 50m
64+
limits:
65+
memory: 512Mi
66+
cpu: 200m
4967
volumeMounts:
5068
- mountPath: /etc/oauth/config
5169
name: oauth-config
179 KB
Loading

0 commit comments

Comments
 (0)