From 9d65bd97134b42ec6227793c0e411716dc023c45 Mon Sep 17 00:00:00 2001 From: Mezi Aris Apronny Date: Tue, 15 Mar 2022 16:45:00 +0700 Subject: [PATCH] ci: optimize deployment resource request & limit (#372) --- .github/workflows/deployer.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deployer.yml b/.github/workflows/deployer.yml index 04c1419b..fd753591 100644 --- a/.github/workflows/deployer.yml +++ b/.github/workflows/deployer.yml @@ -78,13 +78,13 @@ jobs: --set-string ingress.tls[0].secretName=debio-frontend-tls \ --set-string ingress.tls[0].hosts[0]=${{ secrets.INGRESS_HOST }} \ --set-string resources.requests.cpu=100m \ - --set-string resources.requests.memory=256Mi \ + --set-string resources.requests.memory=128Mi \ --set-string resources.limits.cpu=300m \ - --set-string resources.limits.memory=512Mi \ + --set-string resources.limits.memory=256Mi \ --set replicaCount=1 \ --set autoscaling.enabled=true \ --set autoscaling.minReplicas=1 \ - --set autoscaling.maxReplicas=11 \ + --set autoscaling.maxReplicas=1 \ --set-string nodeSelector.pool=general kubectl rollout status deployment/debio-frontend @@ -128,13 +128,13 @@ jobs: --set-string ingress.tls[0].secretName=debio-frontend-tls \ --set-string ingress.tls[0].hosts[0]=${{ secrets.INGRESS_HOST }} \ --set-string resources.requests.cpu=100m \ - --set-string resources.requests.memory=256Mi \ + --set-string resources.requests.memory=128Mi \ --set-string resources.limits.cpu=300m \ - --set-string resources.limits.memory=512Mi \ + --set-string resources.limits.memory=256Mi \ --set replicaCount=1 \ --set autoscaling.enabled=true \ --set autoscaling.minReplicas=1 \ - --set autoscaling.maxReplicas=11 \ + --set autoscaling.maxReplicas=1 \ --set-string nodeSelector.pool=general kubectl rollout status deployment/debio-frontend @@ -178,9 +178,9 @@ jobs: --set-string ingress.tls[0].secretName=debio-frontend-tls \ --set-string ingress.tls[0].hosts[0]=${{ secrets.INGRESS_HOST }} \ --set-string resources.requests.cpu=100m \ - --set-string resources.requests.memory=256Mi \ + --set-string resources.requests.memory=128Mi \ --set-string resources.limits.cpu=300m \ - --set-string resources.limits.memory=512Mi \ + --set-string resources.limits.memory=256Mi \ --set replicaCount=1 \ --set autoscaling.enabled=true \ --set autoscaling.minReplicas=1 \ @@ -228,12 +228,12 @@ jobs: --set-string ingress.tls[0].secretName=debio-frontend-tls \ --set-string ingress.tls[0].hosts[0]=${{ secrets.INGRESS_HOST }} \ --set-string resources.requests.cpu=100m \ - --set-string resources.requests.memory=256Mi \ + --set-string resources.requests.memory=128Mi \ --set-string resources.limits.cpu=300m \ - --set-string resources.limits.memory=512Mi \ - --set replicaCount=2 \ + --set-string resources.limits.memory=256Mi \ + --set replicaCount=1 \ --set autoscaling.enabled=true \ - --set autoscaling.minReplicas=2 \ + --set autoscaling.minReplicas=1 \ --set autoscaling.maxReplicas=11 \ --set-string nodeSelector.pool=general kubectl rollout status deployment/debio-frontend @@ -278,12 +278,12 @@ jobs: --set-string ingress.tls[0].secretName=debio-frontend-tls \ --set-string ingress.tls[0].hosts[0]=${{ secrets.INGRESS_HOST }} \ --set-string resources.requests.cpu=100m \ - --set-string resources.requests.memory=256Mi \ + --set-string resources.requests.memory=128Mi \ --set-string resources.limits.cpu=300m \ - --set-string resources.limits.memory=512Mi \ - --set replicaCount=2 \ + --set-string resources.limits.memory=256Mi \ + --set replicaCount=1 \ --set autoscaling.enabled=true \ - --set autoscaling.minReplicas=2 \ + --set autoscaling.minReplicas=1 \ --set autoscaling.maxReplicas=11 \ --set-string nodeSelector.pool=general kubectl rollout status deployment/debio-frontend