From 381d32a0c2a3b75133332379a0c0f82a5e2d2554 Mon Sep 17 00:00:00 2001 From: Pratap2018 Date: Thu, 14 Nov 2024 18:49:31 +0530 Subject: [PATCH] cicd:update --- .deploy/deployment.yaml | 4 ++-- .deploy/hpa2.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .deploy/hpa2.yaml diff --git a/.deploy/deployment.yaml b/.deploy/deployment.yaml index be308ac..9f01b33 100644 --- a/.deploy/deployment.yaml +++ b/.deploy/deployment.yaml @@ -29,10 +29,10 @@ spec: resources: requests: memory: "1Gi" - cpu: "500m" + cpu: "1000m" limits: memory: "3Gi" - cpu: "1000m" + cpu: "1500m" ports: - containerPort: __PORT__ env: diff --git a/.deploy/hpa2.yaml b/.deploy/hpa2.yaml new file mode 100644 index 0000000..9ac0785 --- /dev/null +++ b/.deploy/hpa2.yaml @@ -0,0 +1,25 @@ +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: entity-api-test + namespace: hypermine-development +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: entity-api-test + minReplicas: 1 + maxReplicas: 5 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 70 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 70