github.com/gocrane/crane@v0.11.0/examples/load-test.yaml (about)

     1  apiVersion: autoscaling.crane.io/v1alpha1
     2  kind: EffectiveHorizontalPodAutoscaler
     3  metadata:
     4    name: hpa-load
     5  spec:
     6    scaleTargetRef:
     7      apiVersion: apps/v1
     8      kind: Deployment
     9      name: ahpa-load
    10    minReplicas: 20
    11    maxReplicas: 150
    12    metrics:
    13      - type: Resource
    14        resource:
    15          name: cpu
    16          target:
    17            type: Utilization
    18            averageUtilization: 50
    19    predictionConfig:
    20      predictionWindow: 3600
    21      predictionAlgorithm:
    22        algorithmType: dsp
    23        dsp:
    24          sampleInterval: "60s"
    25          historyLength: "3d"