Skip to content

Instantly share code, notes, and snippets.

@tomkerkhove
Last active August 23, 2022 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomkerkhove/10e6acadb4e033da25c26ed4b28d00bd to your computer and use it in GitHub Desktop.
Save tomkerkhove/10e6acadb4e033da25c26ed4b28d00bd to your computer and use it in GitHub Desktop.
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: {scaled-object-name}
spec:
scaleTargetRef:
name: foo
minReplicaCount: 1 # Optional. Default: 0
maxReplicaCount: 100 # Optional. Default: 100
triggers:
activationMode: One/All/Custom
formula: AND(trigger1, trigger2) OR trigger3 # Used when mode is 'Custom', AND is used under the hood for 'All'
when:
- type: carbon-emission
metadata:
maximumImpact: "5%"
- type: azure-servicebus
metadata:
# Required: queueName OR topicName and subscriptionName
queueName: functions-sbqueue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment