github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/13/fail/13-fail.yaml (about)

     1  apiVersion: autoscaling/v2
     2  kind: HorizontalPodAutoscaler
     3  metadata:
     4    name: php-apache
     5  spec:
     6    scaleTargetRef:
     7      apiVersion: apps/v1
     8      kind: Deployment
     9      name: php-apache
    10    maxReplicas: 10
    11    metrics:
    12    - type: Resource
    13      resource:
    14        name: cpu
    15        target:
    16          type: Utilization
    17          averageUtilization: 50
    18  status:
    19    observedGeneration: 1
    20    lastScaleTime: <some-time>
    21    currentReplicas: 1
    22    desiredReplicas: 1
    23    currentMetrics:
    24    - type: Resource
    25      resource:
    26        name: cpu
    27        current:
    28          averageUtilization: 0
    29          averageValue: 0