mirror of https://github.com/fluxcd/flagger.git
20 lines
397 B
YAML
20 lines
397 B
YAML
apiVersion: autoscaling/v2beta1
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: podinfo
|
|
namespace: test
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: podinfo
|
|
minReplicas: 2
|
|
maxReplicas: 4
|
|
metrics:
|
|
- type: Resource
|
|
resource:
|
|
name: cpu
|
|
# scale up if usage is above
|
|
# 99% of the requested CPU (100m)
|
|
targetAverageUtilization: 99
|