-
Notifications
You must be signed in to change notification settings - Fork 0
/
hpa.yaml
20 lines (20 loc) · 1.07 KB
/
hpa.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
annotations:
autoscaling.alpha.kubernetes.io/conditions: '[{"type":"AbleToScale","status":"True","lastTransitionTime":"2020-06-30T12:45:38Z","reason":"ReadyForNewScale","message":"recommended
size matches current size"},{"type":"ScalingActive","status":"True","lastTransitionTime":"2020-06-30T12:45:38Z","reason":"ValidMetricFound","message":"the
HPA was able to successfully calculate a replica count from cpu resource utilization
(percentage of request)"},{"type":"ScalingLimited","status":"False","lastTransitionTime":"2020-06-30T12:45:38Z","reason":"DesiredWithinRange","message":"the
desired count is within the acceptable range"}]'
autoscaling.alpha.kubernetes.io/current-metrics: '[{"type":"Resource","resource":{"name":"cpu","currentAverageUtilization":7,"currentAverageValue":"21m"}}]'
name: NAME
resourceVersion: "11349"
spec:
maxReplicas: 25
minReplicas: 10
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: NAME
targetCPUUtilizationPercentage: 80