Skip to content

Commit

Permalink
Add resource limits to containers (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Aug 25, 2019
1 parent 893549d commit ee30adb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
8 changes: 7 additions & 1 deletion helm/templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ spec:
key: REGISTRATION_PASSWORD
ports:
- containerPort: 8080
resources: {}
resources:
limits:
memory: "512Mi"
cpu: "500m"
requests:
memory: "256Mi"
cpu: "250m"
restartPolicy: Always
status: {}
8 changes: 7 additions & 1 deletion helm/templates/flower-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ spec:
key: FLOWER_PASSWORD
ports:
- containerPort: 8080
resources: {}
resources:
limits:
memory: "256Mi"
cpu: "250m"
requests:
memory: "128Mi"
cpu: "125m"
restartPolicy: Always
status: {}
8 changes: 7 additions & 1 deletion helm/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ spec:
value: "{{ .Release.Name }}-api:8080"
ports:
- containerPort: 8888
resources: {}
resources:
limits:
memory: "128Mi"
cpu: "250m"
requests:
memory: "64Mi"
cpu: "125m"
- name: dnsmasq
image: "janeczku/go-dnsmasq:release-1.0.7"
args:
Expand Down
8 changes: 7 additions & 1 deletion helm/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ spec:
{{ include "opwen.environment.shared" . }}
ports:
- containerPort: 80
resources: {}
resources:
limits:
memory: "512Mi"
cpu: "500m"
requests:
memory: "256Mi"
cpu: "250m"
restartPolicy: Always
status: {}

0 comments on commit ee30adb

Please sign in to comment.