At the end of the guide of the irsa readme it asks that we verify the logs and it says server could not find the requested resource:
(base) Weis-MBP:irsa weimin$ kubectl --namespace=kube-system logs -l "app.kubernetes.io/name=aws-cluster-autoscaler"
I0609 14:28:46.452502 1 static_autoscaler.go:343] No unschedulable pods
I0609 14:28:46.452516 1 static_autoscaler.go:390] Calculating unneeded nodes
I0609 14:28:46.452532 1 pre_filtering_processor.go:66] Skipping ip-10-0-3-133.us-west-2.compute.internal - node group min size reached
I0609 14:28:46.452571 1 static_autoscaler.go:439] Scale down status: unneededOnly=true lastScaleUpTime=2020-06-09 14:25:45.78008777 +0000 UTC m=+3.560774141 lastScaleDownDeleteTime=2020-06-09 14:25:45.78008907 +0000 UTC m=+3.560775478 lastScaleDownFailTime=2020-06-09 14:25:45.780090413 +0000 UTC m=+3.560776828 scaleDownForbidden=false isDeleteInProgress=false scaleDownInCooldown=true
I0609 14:28:46.603707 1 reflector.go:188] Listing and watching *v1.CSINode from k8s.io/client-go/informers/factory.go:135
E0609 14:28:46.605089 1 reflector.go:156] k8s.io/client-go/informers/factory.go:135: Failed to list *v1.CSINode: the server could not find the requested resource
I0609 14:28:47.605315 1 reflector.go:188] Listing and watching *v1.CSINode from k8s.io/client-go/informers/factory.go:135
E0609 14:28:47.606732 1 reflector.go:156] k8s.io/client-go/informers/factory.go:135: Failed to list *v1.CSINode: the server could not find the requested resource
I0609 14:28:48.606953 1 reflector.go:188] Listing and watching *v1.CSINode from k8s.io/client-go/informers/factory.go:135
E0609 14:28:48.608360 1 reflector.go:156] k8s.io/client-go/informers/factory.go:135: Failed to list *v1.CSINode: the server could not find the requested resource
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-10-0-3-133.us-west-2.compute.internal Ready
$ helm repo add stable https://kubernetes-charts.storage.googleapis.com
$ helm install cluster-autoscaler --namespace kube-system stable/cluster-autoscaler --values=cluster-autoscaler-chart-values.yaml
NAME: cluster-autoscaler
LAST DEPLOYED: Tue Jun 9 07:25:36 2020
NAMESPACE: kube-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
To verify that cluster-autoscaler has started, run:
kubectl --namespace=kube-system get pods -l "app=aws-cluster-autoscaler,release=cluster-autoscaler"
Listed in the readme:
https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/examples/irsa/README.md
No, I am new to aws and not sure what the problem is. I checked https://github.com/kubernetes/autoscaler/issues/2628 but not sure what it means CA 1.17 is not supposed to be used on k8s 1.14. I am guessing this is k8s 1.16 from above and CA means cluster autoscaler. I tried this https://stackoverflow.com/questions/47130170/how-to-check-kubernetes-cluster-autoscaler-version but nothing was printed. Thanks!
You need an older version of the autoscaler to match the version of the k8s cluster you are running. If you specify v1.16 as the cluster version below should work for you.
helm install cluster-autoscaler --namespace kube-system stable/cluster-autoscaler --values=cluster-autoscaler-chart-values.yaml --set image.tag=v1.16.5 --set image.repository=us.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler
Thanks!
Most helpful comment
You need an older version of the autoscaler to match the version of the k8s cluster you are running. If you specify v1.16 as the cluster version below should work for you.