From 1e744b14fc745358a7c672f4b17b64431406f964 Mon Sep 17 00:00:00 2001 From: Trevor Richards Date: Tue, 9 Apr 2024 12:28:30 -0700 Subject: [PATCH] fix: increase max replicas in HPA --- .github/workflows/deploy-to.openshift-dev.yml | 4 ++-- .github/workflows/deploy-to.openshift-prod.yml | 4 ++-- .github/workflows/deploy-to.openshift-test.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-to.openshift-dev.yml b/.github/workflows/deploy-to.openshift-dev.yml index 7836c6b..0577ac2 100644 --- a/.github/workflows/deploy-to.openshift-dev.yml +++ b/.github/workflows/deploy-to.openshift-dev.yml @@ -39,7 +39,7 @@ env: COMMON_NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }} TAG: "latest" MIN_REPLICAS_DEV: "1" - MAX_REPLICAS_DEV: "1" + MAX_REPLICAS_DEV: "2" MIN_CPU: "10m" MAX_CPU: "150m" MIN_MEM: "400Mi" @@ -172,4 +172,4 @@ jobs: - name: ZAP Scan uses: zaproxy/action-api-scan@v0.2.0 with: - target: 'https://${{ env.APP_NAME }}-${{ env.OPENSHIFT_NAMESPACE_DEV }}.apps.silver.devops.gov.bc.ca/v3/api-docs' \ No newline at end of file + target: 'https://${{ env.APP_NAME }}-${{ env.OPENSHIFT_NAMESPACE_DEV }}.apps.silver.devops.gov.bc.ca/v3/api-docs' diff --git a/.github/workflows/deploy-to.openshift-prod.yml b/.github/workflows/deploy-to.openshift-prod.yml index f736538..13afa04 100644 --- a/.github/workflows/deploy-to.openshift-prod.yml +++ b/.github/workflows/deploy-to.openshift-prod.yml @@ -35,7 +35,7 @@ env: TAG: "latest" TARGET_ENV: "prod" MIN_REPLICAS: "3" - MAX_REPLICAS: "3" + MAX_REPLICAS: "4" MIN_CPU: "25m" MAX_CPU: "300m" MIN_MEM: "650Mi" @@ -133,4 +133,4 @@ jobs: || true && echo "Rollout in progress" oc logs -f dc/${{ env.SPRING_BOOT_IMAGE_NAME }} # Get status, returns 0 if rollout is successful - oc rollout status dc/${{ env.SPRING_BOOT_IMAGE_NAME }} \ No newline at end of file + oc rollout status dc/${{ env.SPRING_BOOT_IMAGE_NAME }} diff --git a/.github/workflows/deploy-to.openshift-test.yml b/.github/workflows/deploy-to.openshift-test.yml index e900521..0d58878 100644 --- a/.github/workflows/deploy-to.openshift-test.yml +++ b/.github/workflows/deploy-to.openshift-test.yml @@ -39,7 +39,7 @@ env: COMMON_NAMESPACE: ${{ secrets.COMMON_NAMESPACE_NO_ENV }} TAG: ${{ github.event.inputs.tag }} MIN_REPLICAS_TEST: "2" - MAX_REPLICAS_TEST: "2" + MAX_REPLICAS_TEST: "3" MIN_CPU: "10m" MAX_CPU: "150m" MIN_MEM: "375Mi" @@ -140,4 +140,4 @@ jobs: - name: ZAP Scan uses: zaproxy/action-api-scan@v0.2.0 with: - target: 'https://${{ env.APP_NAME }}-${{ env.OPENSHIFT_NAMESPACE_TEST }}.apps.silver.devops.gov.bc.ca/v3/api-docs' \ No newline at end of file + target: 'https://${{ env.APP_NAME }}-${{ env.OPENSHIFT_NAMESPACE_TEST }}.apps.silver.devops.gov.bc.ca/v3/api-docs'