KEDA - Scale applications based on the count of blobs in a given Azure Blob Storage container #2459
Unanswered
yamuna-bhavani
asked this question in
Q&A / Need Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have deployed an ngnix application and I am trying to scale the applicationn based on the Blob count present in Azure blob storage but I am facing an issue with KEDA where I am not able fetch the external metrics. Kindly Please help on this issue.
Logs of HPA :-
Steps to Replicate the issue :
Deploy the below yaml file for autoscalling.
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: azure-queue-auth
spec:
podIdentity:
provider: azure
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: azure-queue-scaledobject
namespace: default
spec:
scaleTargetRef:
name: nginx-deployment
triggers:
metadata:
Required
queueName: testOptional, required when pod identity is used
accountName: Free TrialOptional: connection OR authenticationRef that defines connection
connectionFromEnv: DefaultEndpointsProtocol=https;AccountName=csg10032001c690f4bf;AccountKey=azGQ+GLHuX7V6nZqh26oNmYgVI+kguNONwk7uXy5vTVj0foNVnvj5oGmRvG8BUgFy3mQjxk67/v4+cN+G0l1rg==;EndpointSuffix=core.windows.net # Default: AzureWebJobsStorage. Reference to a connection string in deploymentor authenticationRef as defined below
Optional
queueLength: "5" # default 5authenticationRef:
name: azure-queue-auth # authenticationR
command to deploy:
kubectl apply -f test.yaml
Error Message:
Warning FailedComputeMetricsReplicas 41m (x12 over 43m) horizontal-pod-autoscaler invalid metrics (1 invalid out of 1), first error is: failed to get azure-queue-test external metric: unable to get external metric default/azure-queue-test/&LabelSelector{MatchLabels:map[string]string{scaledObjectName: azure-queue-scaledobject,},MatchExpressions:[]LabelSelectorRequirement{},}: unable to fetch metrics from external metrics API: No matching metrics found for azure-queue-test
Warning FailedGetExternalMetric 28m (x60 over 43m) horizontal-pod-autoscaler unable to get external metric default/azure-queue-test/&LabelSelector{MatchLabels:map[string]string{scaledObjectName: azure-queue-scaledobject,},MatchExpressions:[]LabelSelectorRequirement{},}: unable to fetch metrics from external metrics API: No matching metrics found for azure-queue-test
Kindly please help on the issue. The YAML file contains the connection string but still not able to fetch the external metrics.
Beta Was this translation helpful? Give feedback.
All reactions