1
+ # All of the individual sidecar RBAC roles get bound
2
+ # to this account.
3
+ kind : ServiceAccount
4
+ apiVersion : v1
5
+ metadata :
6
+ name : csi-hostpathplugin-sa
7
+ namespace : default
8
+ labels :
9
+ app.kubernetes.io/instance : hostpath.csi.k8s.io
10
+ app.kubernetes.io/part-of : csi-driver-host-path
11
+ app.kubernetes.io/name : csi-hostpathplugin
12
+ app.kubernetes.io/component : serviceaccount
13
+ ---
14
+ apiVersion : rbac.authorization.k8s.io/v1
15
+ kind : ClusterRoleBinding
16
+ metadata :
17
+ labels :
18
+ app.kubernetes.io/instance : hostpath.csi.k8s.io
19
+ app.kubernetes.io/part-of : csi-driver-host-path
20
+ app.kubernetes.io/name : csi-hostpathplugin
21
+ app.kubernetes.io/component : provisioner-cluster-role
22
+ name : csi-hostpathplugin-provisioner-cluster-role
23
+ roleRef :
24
+ apiGroup : rbac.authorization.k8s.io
25
+ kind : ClusterRole
26
+ name : external-provisioner-runner
27
+ subjects :
28
+ - kind : ServiceAccount
29
+ name : csi-hostpathplugin-sa
30
+ namespace : default
31
+ ---
32
+ apiVersion : rbac.authorization.k8s.io/v1
33
+ kind : ClusterRoleBinding
34
+ metadata :
35
+ labels :
36
+ app.kubernetes.io/instance : hostpath.csi.k8s.io
37
+ app.kubernetes.io/part-of : csi-driver-host-path
38
+ app.kubernetes.io/name : csi-hostpathplugin
39
+ app.kubernetes.io/component : snapshotter-cluster-role
40
+ name : csi-hostpathplugin-snapshotter-cluster-role
41
+ roleRef :
42
+ apiGroup : rbac.authorization.k8s.io
43
+ kind : ClusterRole
44
+ name : external-snapshotter-runner
45
+ subjects :
46
+ - kind : ServiceAccount
47
+ name : csi-hostpathplugin-sa
48
+ namespace : default
49
+ ---
50
+ apiVersion : rbac.authorization.k8s.io/v1
51
+ kind : RoleBinding
52
+ metadata :
53
+ labels :
54
+ app.kubernetes.io/instance : hostpath.csi.k8s.io
55
+ app.kubernetes.io/part-of : csi-driver-host-path
56
+ app.kubernetes.io/name : csi-hostpathplugin
57
+ app.kubernetes.io/component : provisioner-role
58
+ name : csi-hostpathplugin-provisioner-role
59
+ roleRef :
60
+ apiGroup : rbac.authorization.k8s.io
61
+ kind : Role
62
+ name : external-provisioner-cfg
63
+ subjects :
64
+ - kind : ServiceAccount
65
+ name : csi-hostpathplugin-sa
66
+ ---
67
+ apiVersion : rbac.authorization.k8s.io/v1
68
+ kind : RoleBinding
69
+ metadata :
70
+ labels :
71
+ app.kubernetes.io/instance : hostpath.csi.k8s.io
72
+ app.kubernetes.io/part-of : csi-driver-host-path
73
+ app.kubernetes.io/name : csi-hostpathplugin
74
+ app.kubernetes.io/component : snapshotter-role
75
+ name : csi-hostpathplugin-snapshotter-role
76
+ roleRef :
77
+ apiGroup : rbac.authorization.k8s.io
78
+ kind : Role
79
+ name : external-snapshotter-leaderelection
80
+ subjects :
81
+ - kind : ServiceAccount
82
+ name : csi-hostpathplugin-sa
83
+ ---
1
84
kind : DaemonSet
2
85
apiVersion : apps/v1
3
86
metadata :
22
105
app.kubernetes.io/name : csi-hostpathplugin
23
106
app.kubernetes.io/component : plugin
24
107
spec :
25
- serviceAccountName : csi-provisioner
108
+ serviceAccountName : csi-hostpathplugin-sa
26
109
containers :
27
110
- name : csi-provisioner
28
111
image : registry.k8s.io/sig-storage/csi-provisioner:v3.3.0
@@ -128,6 +211,7 @@ spec:
128
211
name : csi-data-dir
129
212
- mountPath : /dev
130
213
name : dev-dir
214
+
131
215
- name : liveness-probe
132
216
volumeMounts :
133
217
- mountPath : /csi
@@ -137,6 +221,27 @@ spec:
137
221
- --csi-address=/csi/csi.sock
138
222
- --health-port=9898
139
223
224
+ - name : csi-snapshotter
225
+ image : registry.k8s.io/sig-storage/csi-snapshotter:v6.1.0
226
+ args :
227
+ - -v=5
228
+ - --csi-address=/csi/csi.sock
229
+ - --node-deployment
230
+ env :
231
+ - name : NODE_NAME
232
+ valueFrom :
233
+ fieldRef :
234
+ apiVersion : v1
235
+ fieldPath : spec.nodeName
236
+ securityContext :
237
+ # This is necessary only for systems with SELinux, where
238
+ # non-privileged sidecar containers cannot access unix domain socket
239
+ # created by privileged CSI driver container.
240
+ privileged : true
241
+ volumeMounts :
242
+ - mountPath : /csi
243
+ name : socket-dir
244
+
140
245
volumes :
141
246
- hostPath :
142
247
path : /var/lib/kubelet/plugins/csi-hostpath
0 commit comments