Skip to content

Commit 6a9acf3

Browse files
jmoodyCopilotCopilot
authored
Update production K8s: double replicas, halve CPU/memory requests (#60397)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e260fd7 commit 6a9acf3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

config/kubernetes/production/deployments/webapp.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ metadata:
55
annotations:
66
moda.github.net/allow-missing-ready-pods: '1'
77
spec:
8-
replicas: 6
8+
replicas: 12
9+
strategy:
10+
type: RollingUpdate
11+
rollingUpdate:
12+
maxUnavailable: 1
13+
maxSurge: 2
914
selector:
1015
matchLabels:
1116
app: webapp
@@ -27,17 +32,17 @@ spec:
2732
image: docs-internal
2833
resources:
2934
requests:
30-
cpu: 2500m
35+
cpu: 1250m
3136
# Absolute minimum to start app is 1000m
3237
# Node is single-threaded but we want more CPUs
3338
# for OS and image resizing, and other binary executions
3439
# Better to increase replicas or memory than CPU
35-
memory: 16.0Gi
40+
memory: 8.0Gi
3641
# Absolute minimum to start app is 4500Mi
3742
# Would increase with more pages, versions, or languages supported
3843
# The additional memory helps during traffic surges
3944
limits:
40-
cpu: 16000m
45+
cpu: 8000m
4146
memory: 16.0Gi
4247
ports:
4348
- name: http

0 commit comments

Comments
 (0)