Skip to content

Commit

Permalink
add cpu ressources limits to our deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlavv committed Dec 12, 2024
1 parent b49bd8f commit 5297719
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
9 changes: 8 additions & 1 deletion opensource/templates/nginx/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ spec:
- name: nginx-config-volume
mountPath: /opt/bitnami/nginx/conf/nginx.conf
subPath: nginx.conf
resources:
requests:
cpu: 200m
memory: 128Mi
limits:
cpu: 800m
memory: 512Mi
volumes:
- name: nginx-cache
emptyDir: {}
Expand All @@ -33,4 +40,4 @@ spec:
name: nginx-configmap
items:
- key: nginx.conf
path: nginx.conf
path: nginx.conf
9 changes: 8 additions & 1 deletion opensource/templates/nginx/nginx-purge-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ spec:
- name: nginx-config-volume
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
resources:
requests:
cpu: 200m
memory: 128Mi
limits:
cpu: 800m
memory: 512Mi
volumes:
- name: nginx-purge-cache
emptyDir: {}
Expand All @@ -33,4 +40,4 @@ spec:
name: nginx-purge-configmap
items:
- key: nginx.conf
path: nginx.conf
path: nginx.conf
7 changes: 7 additions & 0 deletions opensource/templates/redis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ spec:
volumeMounts:
- name: redis-storage
mountPath: /dumps
resources:
requests:
cpu: 200m
memory: 128Mi
limits:
cpu: 800m
memory: 512Mi
volumes:
- name: redis-storage
persistentVolumeClaim:
Expand Down

0 comments on commit 5297719

Please sign in to comment.