-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
HPA does not scale out my Deployment #728
Comments
Hi Clem, I presume I see you also use trigger authentication, can you paste that one please? |
Hi,
Yes Please find below the trigger description: apiVersion: keda.k8s.io/v1alpha1
kind: TriggerAuthentication
metadata:
name: trigger-auth-aws-role
spec:
secretTargetRef:
#- key: AWS_ROLE_ARN
# name: keda-aws-secrets
# parameter: awsRoleArn
- parameter: awsAccessKeyID # Required.
name: keda-aws-secrets # Required.
key: AWS_ACCESS_KEY_ID # Required.
- parameter: awsSecretAccessKey # Required.
name: keda-aws-secrets # Required.
key: AWS_SECRET_ACCESS_KEY # Required. |
Oh so you have it configured twice then? In the trigger authentication and on the trigger specification itself; I'd recommend to only use one approach to avoid confusion. Interesting, does your deployment contain 1 or more containers? |
My deployment contains only 1 container |
@clementrey please try to add |
I did the change but unfortunately it did not chnage the error itself But I double check and my agent is well running. |
@clementrey your ScaledObject looks like this? apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: sqs-scaler
namespace: default
labels:
app: agent
deploymentName: agent
spec:
scaleTargetRef:
deploymentName: agent
pollingInterval: 10 # Optional. Default: 30 seconds
cooldownPeriod: 300 # Optional. Default: 300 seconds
minReplicaCount: 1 # Optional. Default: 0
maxReplicaCount: 100 # Optional. Default: 100
triggers: Could you please try to delete scaledObject and any leftover HPA and redeploy? Is your deployment |
Hi, Sorry |
@clementrey no worries, I am glad it is working 😄 |
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
Dear Keda users/developers,
I tried to create an SQS and a CloudWatch ScaledObject but without success.
Once created I the scaled object the HPA has been created. The HPA can scale-in but never scale out
Kubernetes v: 1.14
cloud provider: AWS
Keda version: 1.3 (deployed with Helm 3)
ScaledObject:
I watch the keda controller and metrics server but I could not detect any error message.
Running the describe command on the created HPA:
ScalingActive False FailedGetExternalMetric the HPA was unable to compute the replica count: unable to get external metric default/AWS-SQS-job-queue-keda/&LabelSelector{MatchLabels:map[string]string{deploymentName: agent,},MatchExpressions:[],}: unable to fetch metrics from external metrics API: Exactly one scaled object should match label deploymentName=agent
Does someone knows why the external metrics is not found ? and why my deployment does not scale out ?
Best Regards
Clem
The text was updated successfully, but these errors were encountered: