Skip to content

Commit f0eb538

Browse files
Update deploy documentation
1 parent 2ce65b0 commit f0eb538

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

docs/deploy-1.17-and-later.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ __Note:__ The above command may not work for clusters running on managed k8s ser
2828
### VolumeSnapshot CRDs and snapshot controller installation
2929
Run the following commands to install these components:
3030
```shell
31-
# Change to the latest supported snapshotter version
32-
$ SNAPSHOTTER_VERSION=v2.0.1
31+
# Change to the latest supported snapshotter release branch
32+
$ SNAPSHOTTER_BRANCH=release-6.3
3333

3434
# Apply VolumeSnapshot CRDs
35-
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_VERSION}/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
36-
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_VERSION}/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
37-
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_VERSION}/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
35+
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_BRANCH}/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
36+
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_BRANCH}/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
37+
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_BRANCH}/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
38+
39+
# Change to the latest supported snapshotter version
40+
$ SNAPSHOTTER_VERSION=v6.3.3
3841

3942
# Create snapshot controller
4043
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_VERSION}/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml
@@ -117,20 +120,23 @@ volumesnapshotclass.snapshot.storage.k8s.io/csi-hostpath-snapclass created
117120

118121
The [livenessprobe side-container](https://github.com/kubernetes-csi/livenessprobe) provided by the CSI community is deployed with the CSI driver to provide the liveness checking of the CSI services.
119122

123+
## Modify Cluster Role
124+
125+
For example, if you want to modify external-resizer RBAC rules, you can do:
126+
```
127+
kubectl edit clusterrole external-resizer-runner
128+
```
129+
Replace external-resizer-runner to the role you want to modify
130+
120131
## Run example application and validate
121132

122133
Next, validate the deployment. First, ensure all expected pods are running properly including the external attacher, provisioner, snapshotter and the actual hostpath driver plugin:
123134

124135
```shell
125136
$ kubectl get pods
126-
NAME READY STATUS RESTARTS AGE
127-
csi-hostpath-attacher-0 1/1 Running 0 4m21s
128-
csi-hostpath-provisioner-0 1/1 Running 0 4m19s
129-
csi-hostpath-resizer-0 1/1 Running 0 4m19s
130-
csi-hostpath-snapshotter-0 1/1 Running 0 4m18s
131-
csi-hostpath-socat-0 1/1 Running 0 4m18s
132-
csi-hostpathplugin-0 3/3 Running 0 4m20s
133-
snapshot-controller-0 1/1 Running 0 4m37s
137+
NAME READY STATUS RESTARTS AGE
138+
csi-hostpath-socat-0 1/1 Running 0 42m
139+
csi-hostpathplugin-0 8/8 Running 0 42m
134140
```
135141

136142
From the root directory, deploy the application pods including a storage class, a PVC, and a pod which mounts a volume using the Hostpath driver found in directory `./examples`:

0 commit comments

Comments
 (0)