From 92542006d30bdb8679770446a825fec9381fefea Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Nakazone Batista Date: Sun, 25 Aug 2024 02:40:25 -0300 Subject: [PATCH] Lower Resource Requirements --- deploy.sh | 2 +- template/backend/backend.template.yaml | 2 +- template/frontend/frontend.template.yaml | 8 ++++---- template/storage/storage-processor.template.yaml | 8 ++++---- template/storage/storage.template.yaml | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/deploy.sh b/deploy.sh index 393cb85..336a9f3 100755 --- a/deploy.sh +++ b/deploy.sh @@ -109,7 +109,7 @@ function main() { minikube kubectl -- $@ } - minikube start --driver kvm2 --cpus 4 --memory 4Gib + minikube start --driver kvm2 --cpus 2 --memory 4Gib minikube addons enable ingress-dns minikube addons enable ingress diff --git a/template/backend/backend.template.yaml b/template/backend/backend.template.yaml index 3efe287..96915e5 100644 --- a/template/backend/backend.template.yaml +++ b/template/backend/backend.template.yaml @@ -23,7 +23,7 @@ spec: cpu: "250m" limits: memory: "256Mi" - cpu: "500m" + cpu: "250m" ports: - containerPort: 8070 readinessProbe: diff --git a/template/frontend/frontend.template.yaml b/template/frontend/frontend.template.yaml index a819453..385b995 100644 --- a/template/frontend/frontend.template.yaml +++ b/template/frontend/frontend.template.yaml @@ -21,11 +21,11 @@ spec: imagePullPolicy: "Always" resources: requests: - memory: "256Mi" - cpu: "250m" + memory: "128Mi" + cpu: "75m" limits: - memory: "256Mi" - cpu: "250m" + memory: "128Mi" + cpu: "75m" ports: - containerPort: 5000 env: diff --git a/template/storage/storage-processor.template.yaml b/template/storage/storage-processor.template.yaml index b1721b8..2c2d902 100644 --- a/template/storage/storage-processor.template.yaml +++ b/template/storage/storage-processor.template.yaml @@ -20,11 +20,11 @@ spec: imagePullPolicy: "Always" resources: requests: - memory: "256Mi" - cpu: "250m" + memory: "128Mi" + cpu: "75m" limits: - memory: "256Mi" - cpu: "250m" + memory: "128Mi" + cpu: "75m" env: - name: ALLOWED_ORIGINS valueFrom: diff --git a/template/storage/storage.template.yaml b/template/storage/storage.template.yaml index 6474cde..302b0d4 100644 --- a/template/storage/storage.template.yaml +++ b/template/storage/storage.template.yaml @@ -19,11 +19,11 @@ spec: imagePullPolicy: "Always" resources: requests: - memory: "256Mi" - cpu: "250m" + memory: "128Mi" + cpu: "100m" limits: - memory: "256Mi" - cpu: "250m" + memory: "128Mi" + cpu: "100m" ports: - containerPort: 8000 readinessProbe: