@@ -148,6 +148,46 @@ roleRef:
148
148
name : external-resizer-runner
149
149
apiGroup : rbac.authorization.k8s.io
150
150
---
151
+ kind : ClusterRole
152
+ apiVersion : rbac.authorization.k8s.io/v1
153
+ metadata :
154
+ name : external-snapshotter-runner
155
+ rules :
156
+ - apiGroups : [""]
157
+ resources : ["events"]
158
+ verbs : ["list", "watch", "create", "update", "patch"]
159
+ - apiGroups : ["snapshot.storage.k8s.io"]
160
+ resources : ["volumesnapshotclasses"]
161
+ verbs : ["get", "list", "watch"]
162
+ - apiGroups : ["snapshot.storage.k8s.io"]
163
+ resources : ["volumesnapshotcontents"]
164
+ verbs : ["get", "list", "watch", "update", "patch"]
165
+ - apiGroups : ["snapshot.storage.k8s.io"]
166
+ resources : ["volumesnapshotcontents/status"]
167
+ verbs : ["update", "patch"]
168
+ - apiGroups : ["groupsnapshot.storage.k8s.io"]
169
+ resources : ["volumegroupsnapshotclasses"]
170
+ verbs : ["get", "list", "watch"]
171
+ - apiGroups : ["groupsnapshot.storage.k8s.io"]
172
+ resources : ["volumegroupsnapshotcontents"]
173
+ verbs : ["get", "list", "watch", "update", "patch"]
174
+ - apiGroups : ["groupsnapshot.storage.k8s.io"]
175
+ resources : ["volumegroupsnapshotcontents/status"]
176
+ verbs : ["update", "patch"]
177
+ ---
178
+ kind : ClusterRoleBinding
179
+ apiVersion : rbac.authorization.k8s.io/v1
180
+ metadata :
181
+ name : csi-snapshotter-role
182
+ subjects :
183
+ - kind : ServiceAccount
184
+ name : civo-csi-controller-sa
185
+ namespace : kube-system
186
+ roleRef :
187
+ kind : ClusterRole
188
+ name : external-snapshotter-runner
189
+ apiGroup : rbac.authorization.k8s.io
190
+ ---
151
191
apiVersion : storage.k8s.io/v1
152
192
kind : CSIDriver
153
193
metadata :
@@ -225,7 +265,7 @@ spec:
225
265
- name : socket-dir
226
266
mountPath : /var/lib/kubelet/plugins/csi.civo.com
227
267
- name : csi-resizer
228
- image : k8s.gcr.io/sig-storage/csi-resizer:v1.4.0
268
+ image : k8s.gcr.io/sig-storage/csi-resizer:v1.4.0
229
269
args :
230
270
- " --v=5"
231
271
- " --csi-address=$(ADDRESS)"
@@ -237,6 +277,19 @@ spec:
237
277
volumeMounts :
238
278
- name : socket-dir
239
279
mountPath : /var/lib/kubelet/plugins/csi.civo.com
280
+ - name : csi-snapshotter
281
+ image : k8s.gcr.io/sig-storage/csi-snapshotter:v8.1.0
282
+ args :
283
+ - " --v=5"
284
+ - " --csi-address=$(ADDRESS)"
285
+ - " --timeout=30s"
286
+ env :
287
+ - name : ADDRESS
288
+ value : /var/lib/kubelet/plugins/csi.civo.com/csi.sock
289
+ imagePullPolicy : " IfNotPresent"
290
+ volumeMounts :
291
+ - name : socket-dir
292
+ mountPath : /var/lib/kubelet/plugins/csi.civo.com
240
293
- name : civo-csi-plugin
241
294
image : gcr.io/consummate-yew-302509/csi:latest
242
295
env :
0 commit comments