From 6d222f8154f978d1956fd11b14b8620c280eef64 Mon Sep 17 00:00:00 2001 From: Apoorva Srinivas Appadoo Date: Fri, 24 May 2024 14:31:36 +0200 Subject: [PATCH] feat: add ressources quotas --- manifests/base/api-deployment.yaml | 7 +++++++ manifests/base/nginx-cache-deployment.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/manifests/base/api-deployment.yaml b/manifests/base/api-deployment.yaml index d9ecd8d..2fce7f6 100644 --- a/manifests/base/api-deployment.yaml +++ b/manifests/base/api-deployment.yaml @@ -24,4 +24,11 @@ spec: - containerPort: 8080 hostPort: 8080 protocol: TCP + resources: + requests: + cpu: "100m" + memory: "128Mi" + limits: + cpu: "500m" + memory: "512Mi" restartPolicy: Always diff --git a/manifests/base/nginx-cache-deployment.yaml b/manifests/base/nginx-cache-deployment.yaml index 501ef10..3951578 100644 --- a/manifests/base/nginx-cache-deployment.yaml +++ b/manifests/base/nginx-cache-deployment.yaml @@ -24,4 +24,11 @@ spec: - containerPort: 81 hostPort: 9081 protocol: TCP + resources: + requests: + cpu: "100m" + memory: "128Mi" + limits: + cpu: "500m" + memory: "512Mi" restartPolicy: Always