Igor Zhivilo
1 min readNov 30, 2020

--

Hi Zainab,

that different error from what I saw for static nodegroup - in my case error talked explicitly about policy problem, in your case: it's about spots: ng-spot-NodeGroup

I suggest you to check a couple of things:

1. version of cluster autoscaler, sometimes I had troubles on newer version:

try to kubectl delete -f cluster-autoscaler.yaml

and use other version: https://github.com/warolv/jenkins-eks/blob/d230b483a48c3c95c208e2dfb37f6b2295b5469d/eks-cluster/cluster-autoscaler-one-asg.yaml#L141

try to use this image instead:

- image: k8s.gcr.io/cluster-autoscaler:v1.14.7

2. If not succeded try to remove all nodegroups besides one and make CA work with only nodeGroup and check id: eksctl-eks-ci-cd-nodegroup-ng-spot-NodeGroup-ZIW1FCEERNI7 matching in aws console's autoscaling groups.

3. Check for syntax errors here: https://github.com/warolv/jenkins-eks/blob/d230b483a48c3c95c208e2dfb37f6b2295b5469d/eks-cluster/cluster-autoscaler-one-asg.yaml#L156

command:

- ./cluster-autoscaler

- --v=4

- --stderrthreshold=info

- --cloud-provider=aws

- --skip-nodes-with-local-storage=false

- --nodes=0:10:eksctl-eks-ci-cd-nodegroup-ng-spot-NodeGroup-MZ01JQAANLZ

--

--

Igor Zhivilo
Igor Zhivilo

Written by Igor Zhivilo

Passionate about Kubernetes, AWS and Cloud Security

No responses yet