k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.CSIDriver: failed to list *v1.CSIDriver: csidrivers.storage.k8s.io is forbidden: User "system:serviceaccount:kube-system:cluster-autoscaler" cannot list resource "csidrivers" in API group "storage.k8s.io" at the cluster scope
Just make sure cluster-autoscaler has permission to use the resource csidrivers you can edit the clusterrole – RBAC and add the access for storage.k8s.io
Edit cluster role with this
- apiGroups: - storage.k8s.io resources: - storageclasses - csinodes - csidrivers - csistoragecapacities verbs: - watch - list - get