From 7105b490d9d604d0902aab0bc997a8e794b65c01 Mon Sep 17 00:00:00 2001 From: Adam Vollrath Date: Wed, 13 Dec 2023 10:54:31 -0600 Subject: [PATCH] Add explicit resource requests. Signed-off-by: Adam Vollrath --- .github/uffizzi/k8s/manifests/backstage-deploy.yaml | 7 +++++++ .github/uffizzi/k8s/manifests/pg-deploy.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/uffizzi/k8s/manifests/backstage-deploy.yaml b/.github/uffizzi/k8s/manifests/backstage-deploy.yaml index 9bf62e991a..2c1458cfea 100644 --- a/.github/uffizzi/k8s/manifests/backstage-deploy.yaml +++ b/.github/uffizzi/k8s/manifests/backstage-deploy.yaml @@ -35,3 +35,10 @@ spec: value: 'postgres.default.svc.cluster.local' - name: NODE_ENV value: production + resources: + limits: + cpu: 1000m + memory: 384Mi + requests: + cpu: 20m + memory: 160Mi diff --git a/.github/uffizzi/k8s/manifests/pg-deploy.yaml b/.github/uffizzi/k8s/manifests/pg-deploy.yaml index a72b6b8c83..b842328978 100644 --- a/.github/uffizzi/k8s/manifests/pg-deploy.yaml +++ b/.github/uffizzi/k8s/manifests/pg-deploy.yaml @@ -25,6 +25,13 @@ spec: envFrom: - secretRef: name: postgres-secrets + resources: + limits: + cpu: 1000m + memory: 256Mi + requests: + cpu: 10m + memory: 96Mi volumeMounts: - mountPath: /data name: postgresdb