apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata: name: document-generator-core namespace: moh-prod spec: scaleTargetRef: apiVersion: apps/v1 # Optional. Default: apps/v1 kind: Deployment # Optional. Default: Deployment name: document-generator-core # Mandatory. Must be in the same namespace as the ScaledObject pollingInterval: 30 # Optional. Default: 30 seconds cooldownPeriod: 180 # Optional. Default: 300 seconds minReplicaCount: 1 # Optional. Default: 0 maxReplicaCount: 5 # Optional. Default: 100 triggers: - type: cpu metadata: type: Utilization value: "100" # - type: memory # metadata: # type: Utilization # value: "80"