From 606ab977a60c7af328ec245188c70cde8a01f053 Mon Sep 17 00:00:00 2001 From: Pablo Suarez Date: Thu, 9 Nov 2023 11:09:25 +0300 Subject: [PATCH 1/2] feat: DEVOPS-956 resource limits for devex-apollo --- products/devex-apollo/cd/base/deployment.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/products/devex-apollo/cd/base/deployment.yaml b/products/devex-apollo/cd/base/deployment.yaml index 45d6c53b9..03fac0dc8 100644 --- a/products/devex-apollo/cd/base/deployment.yaml +++ b/products/devex-apollo/cd/base/deployment.yaml @@ -22,6 +22,11 @@ spec: name: devex-apollo ports: - containerPort: 80 + resources: + limits: + memory: 1000Mi + requests: + memory: 500Mi env: - name: BLOCKS_PER_REQUEST valueFrom: From e937ef3e8bb2c1d7ec6ec01da5fc4c4fc92ca29b Mon Sep 17 00:00:00 2001 From: Pablo Suarez Date: Mon, 20 Nov 2023 11:45:12 +0400 Subject: [PATCH 2/2] feat: DEVOPS-956 resource limits for devex-apollo --- products/devex-apollo/cd/base/deployment.yaml | 4 ++-- .../devex-apollo/cd/overlays/staging/kustomization.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/products/devex-apollo/cd/base/deployment.yaml b/products/devex-apollo/cd/base/deployment.yaml index 03fac0dc8..69f573f99 100644 --- a/products/devex-apollo/cd/base/deployment.yaml +++ b/products/devex-apollo/cd/base/deployment.yaml @@ -24,9 +24,9 @@ spec: - containerPort: 80 resources: limits: - memory: 1000Mi + memory: 2000Mi requests: - memory: 500Mi + memory: 1000Mi env: - name: BLOCKS_PER_REQUEST valueFrom: diff --git a/products/devex-apollo/cd/overlays/staging/kustomization.yaml b/products/devex-apollo/cd/overlays/staging/kustomization.yaml index a68ee146d..d982d1799 100644 --- a/products/devex-apollo/cd/overlays/staging/kustomization.yaml +++ b/products/devex-apollo/cd/overlays/staging/kustomization.yaml @@ -22,6 +22,13 @@ patches: kubernetes.io/ingress.class: gce kubernetes.io/ingress.global-static-ip-name: devex-apollo-zilstg-dev networking.gke.io/managed-certificates: devex-apollo + - target: + kind: Deployment + name: devex-apollo + patch: |- + - op: replace + path: "/spec/template/spec/containers/0/resources/limits/memory" + value: 1000Mi patchesStrategicMerge: - configmap.yaml