event driven autoscaling in not working in eks #5071
Unanswered
Techpremsgr6
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
-
Hi Team,
I have deployed Keda in eks using helm chart and after deployment for testing event driven autoscaling created one sqs in aws and created TriggerAuthentication and ScaledObject for deployment, and after sending messages in sqs there is no change in pod replicas and I can't see any error logs in Keda operator as well, below is the code of triggerauthentication and scaledobject:
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/111111111111111/keda-test-sqs
queueLength: "2"
awsRegion: "eu-west-1"
identityOwner: operator
Beta Was this translation helpful? Give feedback.
All reactions