|
apiVersion: autoscaling/v2 |
|
kind: HorizontalPodAutoscaler |
|
metadata: |
|
name: triton-hpa |
|
spec: |
|
scaleTargetRef: |
|
apiVersion: apps/v1 |
|
kind: Deployment |
|
name: triton-deployment |
|
minReplicas: 2 |
|
maxReplicas: 10 |
|
behavior: |
|
scaleUp: |
|
stabilizationWindowSeconds: 30 |
|
policies: |
|
- type: Percent |
|
value: 100 |
|
periodSeconds: 60 |
|
scaleDown: |
|
stabilizationWindowSeconds: 60 |
|
policies: |
|
- type: Percent |
|
value: 50 |
|
periodSeconds: 60 |
|
metrics: |
|
- type: Resource |
|
resource: |
|
name: cpu |
|
target: |
|
type: Utilization |
|
averageUtilization: 60 |
|
- type: Resource |
|
resource: |
|
name: memory |
|
target: |
|
type: Utilization |
|
averageUtilization: 70 |
|
|