Skip to content
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

Snapshot CRDs are not installed #536

Closed
timmyers opened this issue Jul 28, 2020 · 10 comments · Fixed by #938
Closed

Snapshot CRDs are not installed #536

timmyers opened this issue Jul 28, 2020 · 10 comments · Fixed by #938
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@timmyers
Copy link

/kind bug

What happened?

Following directions for alpha features does not install the VolumeSnapshot related CRDs

What you expected to happen?

VolumeSnapshot related CRDs are installed.

How to reproduce it (as minimally and precisely as possible)?

Follow instructions in README for alpha features, i.e.:
kubectl apply -k "github.com/kubernetes-sigs/aws-ebs-csi-driver/deploy/kubernetes/overlays/alpha/?ref=master"

Anything else we need to know?:

It seems these CRDs exist in deploy/kubernetes/cluster, but this is not included as part of the kustomization.

Environment

  • Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.4", GitCommit:"224be7bdce5a9dd0c2fd0d46b83865648e2fe0ba", GitTreeState:"clean", BuildDate:"2019-12-11T12:47:40Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.6-eks-4e7f64", GitCommit:"4e7f642f9f4cbb3c39a4fc6ee84fe341a8ade94c", GitTreeState:"clean", BuildDate:"2020-06-11T13:55:35Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
  • Driver version:
    master branch
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 28, 2020
@Amos-85
Copy link

Amos-85 commented Jul 31, 2020

Hi @timmyers ,

I face the same issue today,
it's looks like it's a missing part when installing the snapshot-controller, it doesn't install those crd's VolumeSnapshot, VolumeSnapshotContent, and VolumeSnapshotClass

Those crd's is not part of the k8s core api according to there documentation:

https://kubernetes.io/docs/concepts/storage/volume-snapshots

The workaround is to install them manually:

https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml"

https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml

https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml

don't forget to ensure all those policies attached to an ec2 instance profile:

https://raw.githubusercontent.com/kubernetes-sigs/aws-ebs-csi-driver/v0.5.0/docs/example-iam-policy.json

@sgatdell
Copy link

Now that CSI Volumesnapshot support has moved out of alpha and is enabled by default, any idea when the VolumeSnapshot support in EBS driver will be moved to stable version of the driver instead of being as part of the driver with alpha features?

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 27, 2020
@AndyXiangLi
Copy link
Contributor

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 29, 2020
@dschunack
Copy link

Whats the current state ? Is it possible to add the CRDs for snapshots in the helm chart?

@wongma7
Copy link
Contributor

wongma7 commented Mar 8, 2021

Yes it is a bug that we install snapshot controller https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/a3a0bc328e35d0a6e4776ac2f4febf2e2990cb64/charts/aws-ebs-csi-driver/templates/statefulset.yaml but not the assojciated CRD ?

Although iti s arguable whether we should install snapshot controller by default at all or leave it as prerequisite since it is not EBS-specific

@dschunack
Copy link

We rollout all our Deployments with terraform and the kubernetes/helm provider.
As workaround we implement a terraform resource to create the CRDs on EKS before we apply the helm chart.
It's working but not the best solution. I think it makes sense to add the CRDs in the Helm Chart.

@bobbywatson3
Copy link

bobbywatson3 commented Mar 18, 2021

Agreed. They should be a part of the helm chart and should be installed when enableVolumeSnapshot: true. Anyone who doesn't want to install them as part of the helm chart can use --skip-crds

@mszumilak
Copy link

With 1.20 VolumeSnapshots are no longer in beta, CRDs are still not available though. Any update on this?

@krmichel
Copy link
Contributor

krmichel commented Jul 5, 2021

This is related to issue #635

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.