rollouts/test/e2e/test_data/rollout/hpa_v2.yaml

25 lines
475 B
YAML

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: hpa-dp
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: echoserver
behavior:
scaleDown:
stabilizationWindowSeconds: 10
# selectPolicy: Disabled
# scaleUp:
# selectPolicy: Disabled
minReplicas: 2
maxReplicas: 6
metrics:
- type: Resource
resource:
name: cpu
target:
type: AverageValue
averageValue: '1m'