Last active
August 23, 2022 12:10
-
-
Save tomkerkhove/10e6acadb4e033da25c26ed4b28d00bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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