Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keda 2.15.1 - workload identity integration #6357

Open
vickithedeveloper opened this issue Nov 22, 2024 · 1 comment
Open

Keda 2.15.1 - workload identity integration #6357

vickithedeveloper opened this issue Nov 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vickithedeveloper
Copy link

Report

I am using a simple trigger authentication yaml and scaled object yaml to scale my application. While it works perfectly when using connection strings for storage account and EventHub, but when trying to migrate it to workload identity I am getting following error during application deployment (in AKS) -
"Cannot create resource when custom resource definition is in Terminating State"
On checking the error logs of Keda operator I could see the following error --

  1. "error": "unable to get event hub metadata: no storage connection string given"}

Note - I have migrated from Keda 2.13.1 to 2.15.1

TriggerAuthentication in my code.

apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
  name: nameOfTriggerAuth
  namespace: default
spec:
  podIdentity:
    provider: azure-workload

ScaledObject Definition -

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
    name: azure-eventhub-scaledobject
    namespace: default
spec:
    scaleTargetRef:
        name: azureeventhub-function
    triggers:
    - type: azure-eventhub
      metadata:
          eventHubNamespace: AzureEventHubNameSpace
          eventHubName: NameOfTheEventHub
          storageAccountName: nameOFStorageAccount
          checkpointStrategy: blobMetadata
          consumerGroup: $Default
          blobContainer: azure-webjobs-eventhub

Expected Behavior

HPA and Scaled objects are expected to be created successfully.

Actual Behavior

Because of errors in the description HPA and scaled objects are not getting created.

Steps to Reproduce the Problem

  1. Install Keda 2.15.1
  2. Deploy the application using the trigger authentication and scaled object code in the description.

Logs from KEDA operator

"error": "unable to get event hub metadata: no storage connection string given"}

KEDA Version

2.15.1

Kubernetes Version

1.29

Platform

Microsoft Azure

Scaler Details

Azure Event hub

Anything else?

No response

@vickithedeveloper vickithedeveloper added the bug Something isn't working label Nov 22, 2024
@JorTurFer
Copy link
Member

Hello
I think that you have a typo in your ScaledObject, the line with the TriggerAuthentication reference is missing:

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
    name: azure-eventhub-scaledobject
    namespace: default
spec:
    scaleTargetRef:
        name: azureeventhub-function
    triggers:
    - type: azure-eventhub      
      metadata:
          eventHubNamespace: AzureEventHubNameSpace
          eventHubName: NameOfTheEventHub
          storageAccountName: nameOFStorageAccount
          checkpointStrategy: blobMetadata
          consumerGroup: $Default
          blobContainer: azure-webjobs-eventhub
      authenticationRef:
          name: nameOfTriggerAuth

Can you confirm if you have this lines?

      authenticationRef:
          name: nameOfTriggerAuth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Triage
Development

No branches or pull requests

2 participants