github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/13/pass/13-pass.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    minReplicas: 2
    11    maxReplicas: 10
    12    metrics:
    13    - type: Resource
    14      resource:
    15        name: cpu
    16        target:
    17          type: Utilization
    18          averageUtilization: 50
    19  status:
    20    observedGeneration: 1
    21    lastScaleTime: <some-time>
    22    currentReplicas: 1
    23    desiredReplicas: 1
    24    currentMetrics:
    25    - type: Resource
    26      resource:
    27        name: cpu
    28        current:
    29          averageUtilization: 0
    30          averageValue: 0