Skip to content

Commit

Permalink
Scale webapp deployment (#290)
Browse files Browse the repository at this point in the history
* Scale webapp deployment

* Remove nginx scaler

* Adjust CPU limits based on `kubectl top po`
  • Loading branch information
c-w committed Jan 22, 2020
1 parent 76fc27e commit cac05ed
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 22 deletions.
2 changes: 1 addition & 1 deletion helm/templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ spec:
cpu: "500m"
requests:
memory: "256Mi"
cpu: "250m"
cpu: "100m"
restartPolicy: Always
status: {}
13 changes: 0 additions & 13 deletions helm/templates/nginx-autoscaler.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions helm/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
selector:
matchLabels:
app: {{ .Release.Name }}-nginx
replicas: 1
replicas: 3
strategy: {}
template:
metadata:
Expand Down Expand Up @@ -42,10 +42,10 @@ spec:
resources:
limits:
memory: "128Mi"
cpu: "250m"
cpu: "100m"
requests:
memory: "64Mi"
cpu: "125m"
cpu: "50m"
- name: dnsmasq
image: "janeczku/go-dnsmasq:release-1.0.7"
args:
Expand Down
8 changes: 4 additions & 4 deletions helm/templates/webapp-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
selector:
matchLabels:
app: {{ .Release.Name }}-webapp
replicas: 1
replicas: 3
strategy: {}
template:
metadata:
Expand All @@ -26,10 +26,10 @@ spec:
- containerPort: 8080
resources:
limits:
memory: "1024Mi"
cpu: "1000m"
requests:
memory: "512Mi"
cpu: "500m"
requests:
memory: "512Mi"
cpu: "200m"
restartPolicy: Always
status: {}
2 changes: 1 addition & 1 deletion helm/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ spec:
cpu: "500m"
requests:
memory: "256Mi"
cpu: "250m"
cpu: "100m"
restartPolicy: Always
status: {}

0 comments on commit cac05ed

Please sign in to comment.