-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VolumeSnapshotClass not in "snapshot.storage.k8s.io/v1beta1" #537
Comments
I am facing the same issue. I believe this is due to VolumeSnapshotDataSource is not enabled in EKS 1.17. |
Hi @PSjoe & @kingli-crypto , I face the same issue today, Those crd's is not part of the k8s core api according to there documentation:
The workaround is to install them manually:
don't forget to ensure all those policies attached to an ec2 instance profile:
|
Thanks for the tip! That got me closer. I no longer get any error messages when stepping through the example. However, it seems my snapshot never gets created. Are you able to get Step 5: I've also tried the example of importing a static snapshot (specs/snapshot-import/). It never creates a new volume. No errors. Just never gets there. I feel like there's some thing I'm missing that's supposed to kick off and do these. Also, yes, I have that IAM possibly attached to the role that my K8s nodes are using. So it shouldn't be an IAM permissions thing. |
Never mind. I've backed out everything and started over and it seems to be working now. |
@PSjoe , |
Just an FYI in case this hits anyone else: I found I had to install the CSI driver using the helm chart: Using the example in both GitHub and on AWS docs page: For the CRDs, you have to download the following: After that, EBS snapshotting works pretty much as described. |
it seems these crds are no longer in that location, does anyone know of the current solution to this issue? |
@nothingofuse , |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Closing this as we've updated the README. /close |
@ayberk: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind bug
What happened?
Following the directions for CSI volume snapshots: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/examples/kubernetes/snapshot
Step 1 returns with:
error: unable to recognize "specs/classes/snapshotclass.yaml": no matches for kind "VolumeSnapshotClass" in version "snapshot.storage.k8s.io/v1beta1"
What you expected to happen?
VolumeSnapshotClass should be created.
How to reproduce it (as minimally and precisely as possible)?
Run through example deployment in aws-ebs-csi-driver/examples/kubernetes/snapshot/ on a newly instantiated EKS cluster running 1.17.
Environment
kubectl version
):Server Version: GitVersion:"v1.17.6-eks-4e7f64", Client Version: GitVersion:"v1.17.7-eks-bffbac"
kubectl apply -k "github.com/kubernetes-sigs/aws-ebs-csi-driver/deploy/kubernetes/overlays/stable/?ref=master"
Also attempted with the 0.5.0 tag with the same results.
CSI driver appears to be running:
And according to this: https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/ the feature gate for VolumeSnapshotDataSource should be enabled by default in 1.17.
The text was updated successfully, but these errors were encountered: