Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Patch to add OAuth proxy sidecar to frontend deployment
# Patch for production frontend deployment
# - Adds OAuth proxy sidecar for authentication
# - Overrides resource limits to prevent OOMKills (sawtooth memory pattern)
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -7,6 +9,15 @@ spec:
template:
spec:
containers:
# Frontend container - increased limits to prevent OOMKills
- name: frontend
resources:
requests:
memory: 512Mi
cpu: 200m
limits:
memory: 2Gi
cpu: 1000m
# OAuth proxy sidecar
- name: oauth-proxy
image: quay.io/openshift/origin-oauth-proxy:4.14
Expand Down Expand Up @@ -46,6 +57,13 @@ spec:
periodSeconds: 5
successThreshold: 1
failureThreshold: 3
resources:
requests:
memory: 256Mi
cpu: 50m
limits:
memory: 512Mi
cpu: 200m
volumeMounts:
- mountPath: /etc/oauth/config
name: oauth-config
Expand Down
Binary file added docs/screenshots/frontend-memory-sawtooth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading