From 5c5a7f21b04acdc8b7534c7a878e6e2304e4ec93 Mon Sep 17 00:00:00 2001 From: Ashley Felton Date: Wed, 17 Jul 2024 10:45:11 +0800 Subject: [PATCH] Tweak deployment replicas and requests. --- kustomize/base/deployment.yaml | 4 ++-- kustomize/base/deployment_hpa.yaml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kustomize/base/deployment.yaml b/kustomize/base/deployment.yaml index b1b03a9..dc5236d 100644 --- a/kustomize/base/deployment.yaml +++ b/kustomize/base/deployment.yaml @@ -30,8 +30,8 @@ spec: value: "Australia/Perth" resources: requests: - memory: "128Mi" - cpu: "10m" + memory: "100Mi" + cpu: "5m" limits: memory: "2Gi" cpu: "1000m" diff --git a/kustomize/base/deployment_hpa.yaml b/kustomize/base/deployment_hpa.yaml index 258cf5c..84827c9 100644 --- a/kustomize/base/deployment_hpa.yaml +++ b/kustomize/base/deployment_hpa.yaml @@ -3,8 +3,9 @@ kind: HorizontalPodAutoscaler metadata: name: ibms-deployment-hpa spec: - minReplicas: 1 - maxReplicas: 3 + # Set a min of 2 replicas in order to allow our PDB. + minReplicas: 2 + maxReplicas: 10 scaleTargetRef: apiVersion: apps/v1 kind: Deployment