You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an issue while trying to use KEDA with Azure AD Workload Identity and Service Bus. I want to authenticate from my AKS cluster keda pod to the Service Bus, but I’m facing authentication-related errors.
Where <my_identityId> is the Azure managed identity client ID.
I have assigned to this identity the role Azure Service Bus Data to resource service bus queue bus-demo-gitops/gitopsqueue
Expected Behavior
I should be able to authenticate from my AKS cluster to the Service Bus using Azure AD Workload Identity.
Actual Behavior
The Azure workload-identity token provider encounters an error.
The Service Bus scaler reports issues related to TokenCredential and missing TokenFilePath.
Steps to Reproduce the Problem
Deploy KEDA operator.
Set up trigger authentication with Azure Workload Identity and ScaledObject.
Override the credential.
Observe the error related to metrics retrieval and TokenCredential.
Logs from KEDA operator
keda-operator error logs:
2024-07-23T22:53:11Z ERROR azure_servicebus_scaler error getting service bus entity length {"type": "ScaledObject", "namespace": "gitops", "name": "gitops", "error": "sources must contain at least one TokenCredential"}
github.com/kedacore/keda/v2/pkg/scalers.(*azureServiceBusScaler).GetMetricsAndActivity
/workspace/pkg/scalers/azure_servicebus_scaler.go:263
github.com/kedacore/keda/v2/pkg/scaling/cache.(*ScalersCache).GetMetricsAndActivityForScaler
/workspace/pkg/scaling/cache/scalers_cache.go:130
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).GetScaledObjectMetrics.func1
/workspace/pkg/scaling/scale_handler.go:527
2024-07-23T22:53:11Z ERROR azure_servicebus_scaler error starting azure workload-identity token provider {"type": "ScaledObject", "namespace": "gitops", "name": "gitops", "error": "no token file specified. Check pod configuration or set TokenFilePath in the options"}
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).GetScaledObjectMetrics
/workspace/pkg/scaling/scale_handler.go:556
github.com/kedacore/keda/v2/pkg/metricsservice.(*GrpcServer).GetMetrics
/workspace/pkg/metricsservice/server.go:48
github.com/kedacore/keda/v2/pkg/metricsservice/api._MetricsService_GetMetrics_Handler
the hpa output:
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
keda-hpa-gitops Deployment/gitops <unknown>/1 (avg) 1 100 1 3h28m
Logs from keda-operator-metrics-apiserver
E0723 22:56:27.451588 1 status.go:71] apiserver received an error that is not an metav1.Status: &status.Error{s:(*status.Status)(0xc000cd85e0)}: rpc error: code = Unknown desc = error when getting metric values metric:s0-azure-servicebus-gitopscqueue encountered error
Hello,
Sorry for the slow response 😿
Could you double-check if KEDA operator pod has the needed env vars added by the workload identity webhook? These are the envs that you should have:
If you have followed the guide and they are not there, try restarting KEDA operator pod
We are encountering the same issue. KEDA operator is correctly configured but it seems the override of the client_id isnt working in the triggerAuthentication resource in combination with scaledJob. Please investigate
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
stalebot
added
the
stale
All issues that are marked as stale due to inactivity
label
Oct 19, 2024
Report
I am encountering an issue while trying to use KEDA with Azure AD Workload Identity and Service Bus. I want to authenticate from my AKS cluster keda pod to the Service Bus, but I’m facing authentication-related errors.
KEDA ScaledObject:
KEDA TriggerAuthentication:
Where
<my_identityId>
is the Azure managed identity client ID.I have assigned to this identity the role
Azure Service Bus Data
to resource service bus queuebus-demo-gitops/gitopsqueue
Expected Behavior
I should be able to authenticate from my AKS cluster to the Service Bus using Azure AD Workload Identity.
Actual Behavior
The Azure workload-identity token provider encounters an error.
The Service Bus scaler reports issues related to TokenCredential and missing TokenFilePath.
Steps to Reproduce the Problem
Logs from KEDA operator
keda-operator error logs:
the hpa output:
Logs from
keda-operator-metrics-apiserver
KEDA Version
2.14.0
Kubernetes Version
1.28
Platform
Microsoft Azure
Scaler Details
Azure service bus
Anything else?
I have configured Azure managed identity, Federated Identity and Oidc for the AKS cluster as according to:
https://learn.microsoft.com/en-us/azure/aks/keda-workload-identity
The text was updated successfully, but these errors were encountered: