You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+145-9
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,17 @@ This repository hosts the CSI Hostpath driver and all of its build and dependent
4
4
5
5
## Pre-requisite
6
6
- Kubernetes cluster
7
-
- Running verrsion 1.13 or later
7
+
- Running version 1.13 or later
8
8
- Access to terminal with `kubectl` installed
9
9
10
10
## Deployment
11
-
The easiest way to test the Hostpath driver is to run `deploy/deploy-hostpath.sh`scrip as show:
11
+
The easiest way to test the Hostpath driver is to run `deploy/deploy-hostpath.sh`script as shown:
12
12
13
13
```shell
14
-
$ sh deploy/deploy-hostpath.sh
14
+
$ deploy/deploy-hostpath.sh
15
15
```
16
16
17
-
You should see an output similar to the following printed on the terminal showing the application of rbac rules and the result of deploying the hostpath driver, external privisioner and external attacher components:
17
+
You should see an output similar to the following printed on the terminal showing the application of rbac rules and the result of deploying the hostpath driver, external provisioner, external attacher and snapshotter components:
18
18
19
19
```shell
20
20
applying RBAC rules
@@ -38,6 +38,7 @@ statefulset.apps/csi-hostpathplugin created
38
38
service/csi-hostpath-provisioner created
39
39
statefulset.apps/csi-hostpath-provisioner created
40
40
deploying snapshotter
41
+
volumesnapshotclass.snapshot.storage.k8s.io/csi-hostpath-snapclass created
41
42
service/csi-hostpath-snapshotter created
42
43
statefulset.apps/csi-hostpath-snapshotter created
43
44
```
@@ -51,7 +52,7 @@ The [livenessprobe side-container](https://github.com/kubernetes-csi/livenesspro
51
52
52
53
## Run example application and validate
53
54
54
-
Next, validate the deployment. First, ensure all expected pods are running properly including the external attacher, provisioner, and the actual hostpath driver plugin:
55
+
Next, validate the deployment. First, ensure all expected pods are running properly including the external attacher, provisioner, snapshotter and the actual hostpath driver plugin:
55
56
56
57
```shell
57
58
$ kubectl get pods
@@ -74,19 +75,19 @@ storageclass.storage.k8s.io/csi-hostpath-sc created
74
75
Let's validate the components are deployed:
75
76
76
77
```shell
77
-
$> kubectl get pv
78
+
$ kubectl get pv
78
79
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
Finally, inspect the application pod `my-csi-app` which mounts a Hostpath volume:
87
88
88
89
```shell
89
-
$> kubectl describe pods/my-csi-app
90
+
$ kubectl describe pods/my-csi-app
90
91
Name: my-csi-app
91
92
Namespace: default
92
93
Priority: 0
@@ -165,7 +166,7 @@ Then, use the following command to locate the file. If everything works OK you s
165
166
An additional way to ensure the driver is working properly is by inspecting the VolumeAttachment API object created that represents the attached volume:
Since volume snapshot is an alpha feature in Kubernetes v1.12 and v1.13, you need to enable feature gate called `VolumeSnapshotDataSource` in the Kubernetes API server binary.
0 commit comments