Event driven scalling is not working. #5066
Unanswered
Techpremsgr6
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Configured test deployment with one pod running and created one sqs, after creating scaledobject and triggerauthentication tried sending messages in sqs but the scal out of deployment is not working. and can't see any error logs in keda operator pod as well.
below is the scaleobject and triggerauthentication created:
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: keda-aws-credentials
namespace: default
spec:
secretTargetRef:
name: iam-user-secret # Required.
key: AWS_ACCESS_KEY_ID # Required.
name: iam-user-secret # Required.
key: AWS_SECRET_ACCESS_KEY # Required.
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: aws-sqs-queue-scaledobject
namespace: default
spec:
scaleTargetRef:
name: nginx-deployment
minReplicaCount: 1 # We don't want pods if the queue is empty
maxReplicaCount: 5 # We don't want to have more than 5 replicas
pollingInterval: 10 # How frequently we should go for metrics (in seconds)
cooldownPeriod: 25 # How many seconds should we wait for downscale
triggers:
authenticationRef:
name: keda-aws-credentials
metadata:
queueURL: https://sqs.eu-west-1.amazonaws.com/11111111111111/test-sqs-keda
queueLength: "2"
awsRegion: "eu-east-1"
identityOwner: operator
Beta Was this translation helpful? Give feedback.
All reactions