darxkies / k8s-tew

Kubernetes - The Easier Way
GNU General Public License v3.0
307 stars 38 forks source link

No matches for kind "VolumeSnapshotClass" in version "snapshot.storage.k8s.io/v1alpha1" #16

Closed figassis closed 5 years ago

figassis commented 5 years ago

I successfully installed a cluster on a previous machine, but I'm now trying with a different cluster (same machine type/specs with ubuntu 18.04), and can't get past the ceph-csi command during deploy, which returns the error:

unable to recognize "/home/user/assets/etc/k8s-tew/k8s/setup/ceph-csi.yaml\": no matches for kind "VolumeSnapshotClass" in version "snapshot.storage.k8s.io/v1alpha1"

figassis commented 5 years ago

It looks like the issue is that the feature gate VolumeSnapshotDataSource is not enabled in assets/etc/k8s-tew/k8s/manifests/kube-apiserver-nodename.yaml.

The file had this: --feature-gates=KubeletPluginsWatcher=true,CSIBlockVolume=true,BlockVolume=true

So I had to manually add VolumeSnapshotDataSource=true for it to work.

I don't know where it failed, but it must be in the generate step.

darxkies commented 5 years ago

IIRC that flag is not set by default. I will add it with the next release.

darxkies commented 5 years ago

The change for that is already in the repository.