keda-example.yaml 664 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  https://keda.sh/docs/1.4/concepts/scaling-deployments/#leverage-the-container-lifecycle


# The KEDA scaled object - REF: https://keda.sh/docs/1.4/scalers/apache-kafka/
apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
  name: kafka-scaledobject
  namespace: default
spec:
  scaleTargetRef:
    deploymentName: azure-functions-deployment
  pollingInterval: 30
  triggers:
    - type: kafka
      metadata:
        bootstrapServers: localhost:9092
        consumerGroup: my-group       # Make sure that this consumer group name is the same one as the one that is consuming topics
        topic: test-topic
        # Optional
        lagThreshold: "50"