diff --git a/desteg-hpa.yaml b/desteg-hpa.yaml new file mode 100644 index 0000000..c3deb20 --- /dev/null +++ b/desteg-hpa.yaml @@ -0,0 +1,20 @@ +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: desteg-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: desteg + minReplicas: 1 + maxReplicas: 24 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 50 +