File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,18 @@ clusterrole.rbac.authorization.k8s.io/external-attacher-runner created
28
28
clusterrolebinding.rbac.authorization.k8s.io/csi-attacher-role created
29
29
role.rbac.authorization.k8s.io/external-attacher-cfg created
30
30
rolebinding.rbac.authorization.k8s.io/csi-attacher-role-cfg created
31
+ serviceaccount/csi-snapshotter created
32
+ clusterrole.rbac.authorization.k8s.io/external-snapshotter-runner created
33
+ clusterrolebinding.rbac.authorization.k8s.io/csi-snapshotter-role created
31
34
deploying hostpath components
32
35
service/csi-hostpath-attacher created
33
36
statefulset.apps/csi-hostpath-attacher created
34
37
statefulset.apps/csi-hostpathplugin created
35
38
service/csi-hostpath-provisioner created
36
39
statefulset.apps/csi-hostpath-provisioner created
40
+ deploying snapshotter
41
+ service/csi-hostpath-snapshotter created
42
+ statefulset.apps/csi-hostpath-snapshotter created
37
43
```
38
44
39
45
The script can also install CRDs that are needed for alpha features,
@@ -50,6 +56,7 @@ $ kubectl get pods
50
56
NAME READY STATUS RESTARTS AGE
51
57
csi-hostpath-attacher-0 1/1 Running 0 5m47s
52
58
csi-hostpath-provisioner-0 1/1 Running 0 5m47s
59
+ csi-hostpath-snapshotter-0 1/1 Running 0 5m47s
53
60
csi-hostpathplugin-0 2/2 Running 0 5m45s
54
61
```
55
62
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ BASE_DIR=$(dirname "$0")
23
23
K8S_RELEASE=${K8S_RELEASE:- " release-1.13" }
24
24
PROVISIONER_RELEASE=${PROVISIONER_RELEASE:- $(image_version " ${BASE_DIR} /hostpath/csi-hostpath-provisioner.yaml" csi-provisioner)}
25
25
ATTACHER_RELEASE=${ATTACHER_RELEASE:- $(image_version " ${BASE_DIR} /hostpath/csi-hostpath-attacher.yaml" csi-attacher)}
26
+ SNAPSHOTTER_RELEASE=${SNAPSHOTTER_RELEASE:- $(image_version " ${BASE_DIR} /snapshotter/csi-hostpath-snpshotter.yaml" csi-snapshotter)}
26
27
INSTALL_CRD=${INSTALL_CRD:- " false" }
27
28
28
29
# apply CSIDriver and CSINodeInfo API objects
36
37
echo " applying RBAC rules"
37
38
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-provisioner/${PROVISIONER_RELEASE} /deploy/kubernetes/rbac.yaml
38
39
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-attacher/${ATTACHER_RELEASE} /deploy/kubernetes/rbac.yaml
40
+ kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/${SNAPSHOTTER_RELEASE} /deploy/kubernetes/rbac.yaml
39
41
40
42
# deploy hostpath plugin and registrar sidecar
41
43
echo " deploying hostpath components"
42
44
kubectl apply -f ${BASE_DIR} /hostpath
45
+
46
+ # deploy snapshotter
47
+ echo " deploying snapshotter"
48
+ kubectl apply -f ${BASE_DIR} /snapshotter
Original file line number Diff line number Diff line change @@ -27,10 +27,20 @@ spec:
27
27
labels :
28
28
app : csi-hostpath-snapshotter
29
29
spec :
30
+ affinity :
31
+ podAffinity :
32
+ requiredDuringSchedulingIgnoredDuringExecution :
33
+ - labelSelector :
34
+ matchExpressions :
35
+ - key : app
36
+ operator : In
37
+ values :
38
+ - csi-hostpathplugin
39
+ topologyKey : kubernetes.io/hostname
30
40
serviceAccount : csi-snapshotter
31
41
containers :
32
42
- name : csi-snapshotter
33
- image : quay.io/k8scsi/csi-snapshotter:v0.4 .1
43
+ image : quay.io/k8scsi/csi-snapshotter:v1.0 .1
34
44
args :
35
45
- " --csi-address=$(ADDRESS)"
36
46
- " --connection-timeout=15s"
You can’t perform that action at this time.
0 commit comments