0

我将 KEDA 与具有最小设置的服务总线一起使用,但是当我推送一个缩放对象时,操作员告诉我连接字符串丢失了。所以没有创建 HPA,当然也没有缩放。我真的不知道我错过了什么

{"level":"error","ts":1585898856.2814944,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"scaledobject-controller","request":"keda/azure-servicebus-queue-scaledobject","error":"error getting scaler for trigger #0: error parsing azure service bus metadata: no connection setting given",

我尝试了不同的格式,有或没有 entityPath,我不太了解 Go,但我应该只知道连接字符串为空

apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
  name: azure-servicebus-queue-scaledobject
  labels:
    deploymentName: my-deploy
spec:
  scaleTargetRef:
    deploymentName: my-deploy
  pollingInterval: 5
  minReplicaCount: 2   
  maxReplicaCount: 10  
  triggers:
  - type: azure-servicebus
    metadata:
      queueName: keda
      connection: Endpoint=sb://test-keda.servicebus.windows.net/;SharedAccessKeyName=reader;SharedAccessKey=BLABLABLA;EntityPath=keda
      queueLength: "5"

知道我缺少什么吗?谢谢

4

1 回答 1

1

好吧,我很笨

您需要传递包含连接字符串的秘密名称,而不是字符串本身

此处解释:https ://keda.sh/docs/scalers/azure-service-bus/

于 2020-04-06T09:43:26.797 回答