From 52977190aee42cfc343a9a570c734b07bd46d3a1 Mon Sep 17 00:00:00 2001 From: Matlavv Date: Thu, 12 Dec 2024 16:23:28 +0100 Subject: [PATCH] add cpu ressources limits to our deployments --- opensource/templates/nginx/nginx-deployment.yaml | 9 ++++++++- opensource/templates/nginx/nginx-purge-deployment.yaml | 9 ++++++++- opensource/templates/redis-deployment.yaml | 7 +++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/opensource/templates/nginx/nginx-deployment.yaml b/opensource/templates/nginx/nginx-deployment.yaml index 7f1588a..6cf5216 100644 --- a/opensource/templates/nginx/nginx-deployment.yaml +++ b/opensource/templates/nginx/nginx-deployment.yaml @@ -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: {} @@ -33,4 +40,4 @@ spec: name: nginx-configmap items: - key: nginx.conf - path: nginx.conf \ No newline at end of file + path: nginx.conf diff --git a/opensource/templates/nginx/nginx-purge-deployment.yaml b/opensource/templates/nginx/nginx-purge-deployment.yaml index 39b5dcc..3207e94 100644 --- a/opensource/templates/nginx/nginx-purge-deployment.yaml +++ b/opensource/templates/nginx/nginx-purge-deployment.yaml @@ -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: {} @@ -33,4 +40,4 @@ spec: name: nginx-purge-configmap items: - key: nginx.conf - path: nginx.conf \ No newline at end of file + path: nginx.conf diff --git a/opensource/templates/redis-deployment.yaml b/opensource/templates/redis-deployment.yaml index 6470c48..7974979 100644 --- a/opensource/templates/redis-deployment.yaml +++ b/opensource/templates/redis-deployment.yaml @@ -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: