From a650fa95833c63cb7d773911c1df037331917b3d Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Nakazone Batista Date: Fri, 28 Jun 2024 03:33:44 -0300 Subject: [PATCH] Reduces Resource Limits for Smaller Cluster --- deploy.sh | 2 +- deployment/redis/redis.yaml | 6 +++--- template/backend/backend.template.yaml | 2 +- template/storage/storage-processor.template.yaml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deploy.sh b/deploy.sh index f48ead8..393cb85 100755 --- a/deploy.sh +++ b/deploy.sh @@ -109,7 +109,7 @@ function main() { minikube kubectl -- $@ } - minikube start --driver kvm2 --cpus 6 --memory 6Gib + minikube start --driver kvm2 --cpus 4 --memory 4Gib minikube addons enable ingress-dns minikube addons enable ingress diff --git a/deployment/redis/redis.yaml b/deployment/redis/redis.yaml index a4a5fb9..52908d9 100644 --- a/deployment/redis/redis.yaml +++ b/deployment/redis/redis.yaml @@ -20,10 +20,10 @@ spec: resources: requests: memory: "256Mi" - cpu: "250m" + cpu: "75m" limits: - memory: "512Mi" - cpu: "250m" + memory: "256Mi" + cpu: "75m" ports: - containerPort: 6379 env: diff --git a/template/backend/backend.template.yaml b/template/backend/backend.template.yaml index 3ce530f..6938373 100644 --- a/template/backend/backend.template.yaml +++ b/template/backend/backend.template.yaml @@ -25,7 +25,7 @@ spec: cpu: "250m" limits: memory: "256Mi" - cpu: "750m" + cpu: "500m" ports: - containerPort: 8070 readinessProbe: diff --git a/template/storage/storage-processor.template.yaml b/template/storage/storage-processor.template.yaml index fd68e77..2e6f835 100644 --- a/template/storage/storage-processor.template.yaml +++ b/template/storage/storage-processor.template.yaml @@ -26,8 +26,8 @@ spec: memory: "256Mi" cpu: "250m" limits: - memory: "512Mi" - cpu: "500m" + memory: "256Mi" + cpu: "250m" env: - name: REDIS_BASE_URL valueFrom: