github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/keda.sh/ScaledObject/testdata/keda-fallback.yaml (about)

     1  apiVersion: keda.sh/v1alpha1
     2  kind: ScaledObject
     3  metadata:
     4    annotations:
     5    finalizers:
     6      - finalizer.keda.sh
     7    labels:
     8      argocd.argoproj.io/instance: keda-default
     9    name: keda-with-fallback
    10    namespace: keda
    11    resourceVersion: '160591443'
    12    uid: 83ee438a-f383-43f3-9346-b901d9773f5c
    13  spec:
    14    maxReplicaCount: 10
    15    minReplicaCount: 1
    16    fallback:
    17      failureThreshold: 3
    18      replicas: 5
    19    scaleTargetRef:
    20      name: keda-service
    21    triggers:
    22      - type: prometheus
    23        metadata:
    24          serverAddress: http://prometheus-server.monitoring.svc.cluster.local
    25          metricName: http_requests_total
    26          threshold: '100'
    27          query: sum(rate(http_requests_total{app="keda-service"}[2m]))
    28  status:
    29    conditions:
    30      - message: ScaledObject is defined correctly and is ready for scaling
    31        reason: ScaledObjectReady
    32        status: 'True'
    33        type: Ready
    34      - message: Scaling is performed because triggers are active
    35        reason: ScalerActive
    36        status: 'True'
    37        type: Active
    38      - message: At least one trigger is falling back on this scaled object
    39        reason: FallbackExists
    40        status: 'True'
    41        type: Fallback
    42      - status: 'False'
    43        type: Paused
    44    externalMetricNames:
    45      - s0-prometheus
    46    health:
    47      "prometheus": 
    48        numberOfFailures: 4
    49        status: Failing
    50    hpaName: keda-with-fallback-hpa
    51    lastActiveTime: '2023-12-19T10:35:22Z'
    52    originalReplicaCount: 1
    53    scaleTargetGVKR:
    54      group: apps
    55      kind: Deployment
    56      resource: deployments
    57      version: v1
    58    scaleTargetKind: apps/v1.Deployment