Created
April 18, 2022 17:23
-
-
Save j-griffith/d6ab0a4daa2c4bff5bebf7d7f8f0f3ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION="release-5.0" | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml | |
cat <<EOF | kubectl apply -f - | |
apiVersion: snapshot.storage.k8s.io/v1 | |
kind: VolumeSnapshotClass | |
metadata: | |
name: ebs-snapclass-v1 | |
driver: ebs.csi.aws.com | |
deletionPolicy: Delete | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment