kubernetes / autoscaler

Autoscaling components for Kubernetes
Apache License 2.0
7.96k stars 3.94k forks source link

Failed logs for other ASGs available in EKS. #6323

Open uzayr opened 9 months ago

uzayr commented 9 months ago

What version of the component are you using? v1.28.0

EKS Version: 1.28

Error logs clusterstate.go:1033] Failed to check cloud provider has instance for ip-xxx-xx-xx-xx.ec2.internal: node is not present in aws: could not find instance {aws:///us-east-1c/i-xxxxxxxxxxxxxxxx i-xxxxxxxxxxxxxxx}

Scenario As per multiple cluster-autoscaler deployment in a cluster, each namespace has its own cluster-autoscaler deployment. Each namespaced autoscaler is associated with their ASG. But autoscaler is fetching all nodes available in EKS and throws failed log msgs in logs for other ASG's nodes too.

Problem Not filtering out nodes with all given tags to asg:tag. Still checking all the nodes available in the cluster and logging warning msgs.

How to reproduce it (as minimally and precisely as possible):

Note: I've tested only v1.27.2 and v1.28.0 version and it's happening to both versions. But v1.26.1 version is working fine.

Shubham82 commented 9 months ago

/area provider/aws

yongzhang commented 8 months ago

Same issue on 1.28, I have single cluster-autoscaler but multiple ASGs. These nodes in the error logs are not in the ASG for auto discovering.

k8s-triage-robot commented 2 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

Shubham82 commented 2 months ago

/remove-lifecycle stale