You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flux2/cmd/flux/testdata/diff-kustomization/hpa.yaml

49 lines
1.0 KiB
YAML

apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
labels:
kustomize.toolkit.fluxcd.io/name: podinfo
kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }}
name: podinfo
namespace: default
spec:
behavior:
scaleDown:
policies:
- periodSeconds: 16
type: Percent
value: 99
selectPolicy: Max
stabilizationWindowSeconds: 60
scaleUp:
policies:
- periodSeconds: 16
type: Pods
value: 5
- periodSeconds: 16
type: Percent
value: 100
selectPolicy: Max
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: podinfo
minReplicas: 2
maxReplicas: 4
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
# scale up if usage is above
# 99% of the requested CPU (100m)
averageUtilization: 98
- type: Pods
pods:
metric:
name: podinfo_http_requests_total
target:
averageValue: "3"
type: AverageValue