mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-12-01 00:08:47 +00:00
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
This commit is contained in:
@@ -126,6 +126,34 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: autoscaling/v2
|
apiVersion: autoscaling/v2
|
||||||
kind: HorizontalPodAutoscaler
|
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:
|
metadata:
|
||||||
name: prometheus-hpa
|
name: prometheus-hpa
|
||||||
namespace: telecom-monitoring
|
namespace: telecom-monitoring
|
||||||
|
|||||||
Reference in New Issue
Block a user