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
2 changes: 2 additions & 0 deletions config/kubernetes/default/deployments/webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
annotations:
moda.github.net/inject-unified-service-tag-env-var: docs-internal
spec:
replicas: 1
selector:
Expand Down
14 changes: 10 additions & 4 deletions config/kubernetes/production/deployments/webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ metadata:
name: webapp
annotations:
moda.github.net/allow-missing-ready-pods: '1'
moda.github.net/inject-unified-service-tag-env-var: docs-internal
spec:
replicas: 6
replicas: 12
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 2
selector:
matchLabels:
app: webapp
Expand All @@ -27,17 +33,17 @@ spec:
image: docs-internal
resources:
requests:
cpu: 2500m
cpu: 1250m
# Absolute minimum to start app is 1000m
# Node is single-threaded but we want more CPUs
# for OS and image resizing, and other binary executions
# Better to increase replicas or memory than CPU
memory: 16.0Gi
memory: 8.0Gi
# Absolute minimum to start app is 4500Mi
# Would increase with more pages, versions, or languages supported
# The additional memory helps during traffic surges
limits:
cpu: 16000m
cpu: 8000m
memory: 16.0Gi
ports:
- name: http
Expand Down
Loading
Loading