Rancher/k8s:v1.9.1-rancher1-1 Failed to list *v1.StorageClass: storageclasses.storage.k8s.io


Launching image rancher/k8s:v1.9.1-rancher1-1 with (VolumeScheduling=true,PersistentLocalVolumes=true) feature-gates enabled generates the following error in the scheduler logs:

1 reflector.go:205] k8s.io/kubernetes/vendor/k8s.io/ client-go/informers/factory.go:86: Failed to list *v1.StorageClass: storageclasses.storage.k8s.io is forbidden: User "system:kube-scheduler" cannot list storageclasses.storage.k8s.io at the cluster scope

This seems to point to the following issue: https://github.com/kubernetes/kubernetes/issues/57961 which should be fixed by a commit in 1.9.1.

It seems that rancher/k8s:v1.9.1-rancher1-1 should contain this, but I am not 100% sure.

Anyone with an idea on how to proceed?

Long logs:

Thanks to @superseb, the trick to to have the feature gates options on both the kube apiserver and scheduler.

@baboune, I apologize that it may be a little bit out of the topic. Could you kind share me how could you launch the image “rancher/k8s:v1.9.1-rancher1-1” ? Is it just done by “docker run”? Thanks.


I used RKE v 0.0.9.

It should also work with docker run.