1
- # TODO: Force DaemonSet to not run on master.
1
+ # TODO(#40) : Force DaemonSet to not run on master.
2
2
kind : DaemonSet
3
3
apiVersion : apps/v1
4
4
metadata :
@@ -16,52 +16,56 @@ spec:
16
16
containers :
17
17
- name : csi-driver-registrar
18
18
imagePullPolicy : Always
19
- image : quay.io/k8scsi/driver-registrar:v0.2.0
19
+ image : quay.io/k8scsi/driver-registrar:v0.4.1
20
20
args :
21
21
- " --v=5"
22
22
- " --csi-address=$(ADDRESS)"
23
+ - " --kubelet-registration-path=/var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock"
23
24
env :
24
25
- name : ADDRESS
25
- value : /csi/csi.sock
26
+ value : /var/lib/kubelet/plugins/com.google. csi.gcepd /csi.sock
26
27
- name : KUBE_NODE_NAME
27
28
valueFrom :
28
29
fieldRef :
29
30
fieldPath : spec.nodeName
30
31
volumeMounts :
31
32
- name : plugin-dir
32
- mountPath : /csi
33
- # - name: registrar-socket -dir
34
- # mountPath: /var/lib/csi/sockets/
33
+ mountPath : /var/lib/kubelet/plugins/com.google. csi.gcepd/
34
+ - name : registration -dir
35
+ mountPath : /registration
35
36
- name : gce-pd-driver
36
37
securityContext :
37
38
privileged : true
38
39
imagePullPolicy : Always
39
- image : gcr.io/google-containers/volume-csi/gcp-compute-persistent-disk-csi-driver:v0.1 .0.alpha
40
+ image : gcr.io/google-containers/volume-csi/gcp-compute-persistent-disk-csi-driver:v0.2 .0.beta
40
41
args :
41
42
- " --v=5"
42
43
- " --endpoint=$(CSI_ENDPOINT)"
43
- - " --nodeid=$(KUBE_NODE_NAME)"
44
44
env :
45
45
- name : CSI_ENDPOINT
46
46
value : unix:/csi/csi.sock
47
- - name : KUBE_NODE_NAME
48
- valueFrom :
49
- fieldRef :
50
- fieldPath : spec.nodeName
51
47
volumeMounts :
52
48
- name : kubelet-dir
53
49
mountPath : /var/lib/kubelet
54
50
mountPropagation : " Bidirectional"
55
51
- name : plugin-dir
56
52
mountPath : /csi
57
53
- name : device-dir
58
- mountPath : /host/dev
54
+ mountPath : /dev
55
+ # The following mounts are required to trigger host udevadm from container
56
+ - name : udev-rules-etc
57
+ mountPath : /etc/udev
58
+ - name : udev-rules-lib
59
+ mountPath : /lib/udev
60
+ - name : udev-socket
61
+ mountPath : /run/udev
62
+ - name : sys
63
+ mountPath : /sys
59
64
volumes :
60
- # TODO(dependency): this will work when kublet registrar functionality exists
61
- # - name: registrar-socket-dir
62
- # hostPath:
63
- # path: /var/lib/kubelet/device-plugins/
64
- # type: DirectoryOrCreate
65
+ - name : registration-dir
66
+ hostPath :
67
+ path : /var/lib/kubelet/plugins/
68
+ type : Directory
65
69
- name : kubelet-dir
66
70
hostPath :
67
71
path : /var/lib/kubelet
73
77
- name : device-dir
74
78
hostPath :
75
79
path : /dev
76
- type : Directory
80
+ type : Directory
81
+ # The following mounts are required to trigger host udevadm from container
82
+ - name : udev-rules-etc
83
+ hostPath :
84
+ path : /etc/udev
85
+ type : Directory
86
+ - name : udev-rules-lib
87
+ hostPath :
88
+ path : /lib/udev
89
+ type : Directory
90
+ - name : udev-socket
91
+ hostPath :
92
+ path : /run/udev
93
+ type : Directory
94
+ - name : sys
95
+ hostPath :
96
+ path : /sys
97
+ type : Directory
0 commit comments