From 1887901d3c8b02202129072a9b34fda6c897b437 Mon Sep 17 00:00:00 2001 From: nutcas3 Date: Sat, 25 Apr 2026 05:35:05 +0300 Subject: [PATCH] feat: Add carrier connector HorizontalPodAutoscaler with CPU and memory-based scaling - Add carrier-connector-hpa HorizontalPodAutoscaler in telecom-platform namespace - Add scaling configuration targeting carrier-connector Deployment (2-4 replicas) - Add CPU metric with 70% average utilization threshold - Add memory metric with 80% average utilization threshold --- deployments/kubernetes/manifests/hpa.yaml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/deployments/kubernetes/manifests/hpa.yaml b/deployments/kubernetes/manifests/hpa.yaml index edd1a9a..6577882 100644 --- a/deployments/kubernetes/manifests/hpa.yaml +++ b/deployments/kubernetes/manifests/hpa.yaml @@ -126,6 +126,34 @@ spec: --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler +metadata: + name: carrier-connector-hpa + namespace: telecom-platform + labels: + app: carrier-connector +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: carrier-connector + minReplicas: 2 + maxReplicas: 4 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 70 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler metadata: name: prometheus-hpa namespace: telecom-monitoring