From 070ffbab44b78243cfb6cc383ce89cb98947e579 Mon Sep 17 00:00:00 2001 From: Marijanela Date: Sat, 2 May 2026 11:28:05 +0200 Subject: [PATCH] add hpa --- k8s/moj-servis/hpa.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 k8s/moj-servis/hpa.yaml diff --git a/k8s/moj-servis/hpa.yaml b/k8s/moj-servis/hpa.yaml new file mode 100644 index 0000000..6d6e11a --- /dev/null +++ b/k8s/moj-servis/hpa.yaml @@ -0,0 +1,19 @@ +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: +name: helloo-cicdd-hpa + namespace: student-marijanela218 +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: moj-servis + minReplicas: 1 + maxReplicas: 5 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 60