@@ -17,8 +17,7 @@ error: the server doesn't have a resource type "volumesnapshotclasses"
17
17
18
18
Next, check if any pods are running the snapshot-controller image:
19
19
```
20
- $ kubectl get pods --all-namespaces -o=jsonpath='{range .items[*]}{"\n"}{range .spec.containers[*]}{.image}{", "}{end}{end}' | grep snapshot-controller
21
- quay.io/k8scsi/snapshot-controller:v2.0.1,
20
+ $ kubectl get pods --all-namespaces -o jsonpath="{range .items[*]}{range .spec.containers[*]}{.image}{'\n'}{end}{end}" | grep snapshot-controller
22
21
```
23
22
24
23
If no pods are running the snapshot-controller, follow the instructions below to create the snapshot-controller
@@ -30,18 +29,22 @@ Run the following commands to install these components:
30
29
``` shell
31
30
# Change to the latest supported snapshotter release branch
32
31
$ SNAPSHOTTER_BRANCH=release-6.3
33
-
34
- # Apply VolumeSnapshot CRDs
35
32
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_BRANCH} /client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
33
+ customresourcedefinition.apiextensions.k8s.io/volumesnapshotclasses.snapshot.storage.k8s.io created
36
34
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_BRANCH} /client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
35
+ customresourcedefinition.apiextensions.k8s.io/volumesnapshotcontents.snapshot.storage.k8s.io created
37
36
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_BRANCH} /client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
37
+ customresourcedefinition.apiextensions.k8s.io/volumesnapshots.snapshot.storage.k8s.io created
38
38
39
- # Change to the latest supported snapshotter version
40
39
$ SNAPSHOTTER_VERSION=v6.3.3
41
-
42
- # Create snapshot controller
43
40
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_VERSION} /deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml
41
+ serviceaccount/snapshot-controller created
42
+ clusterrole.rbac.authorization.k8s.io/snapshot-controller-runner created
43
+ clusterrolebinding.rbac.authorization.k8s.io/snapshot-controller-role created
44
+ role.rbac.authorization.k8s.io/snapshot-controller-leaderelection created
45
+ rolebinding.rbac.authorization.k8s.io/snapshot-controller-leaderelection created
44
46
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_VERSION} /deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml
47
+ deployment.apps/snapshot-controller created
45
48
```
46
49
47
50
## Deployment
0 commit comments