Skip to content

Commit 644c1a6

Browse files
committed
Support local disk cache for ebs
1 parent e4ce63f commit 644c1a6

6 files changed

Lines changed: 896 additions & 2 deletions

File tree

deploy/charts/alibaba-cloud-csi-driver/templates/plugin.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ spec:
208208
- mountPath: /host/sys/fs/cgroup
209209
name: cgroup
210210
mountPropagation: "HostToContainer"
211+
- mountPath: /var/alibaba-cloud-csi
212+
name: var-csi
213+
mountPropagation: "HostToContainer"
211214
- mountPath: /etc/csi-plugin/config
212215
name: csi-plugin-cm
213216
{{- if $nodePool.csi.local.enabled }}
@@ -377,6 +380,10 @@ spec:
377380
hostPath:
378381
path: /sys/fs/cgroup
379382
type: Directory
383+
- name: var-csi
384+
hostPath:
385+
path: /var/alibaba-cloud-csi
386+
type: DirectoryOrCreate
380387
- name: host-dev
381388
hostPath:
382389
path: /dev

pkg/disk/controllerserver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ type diskVolumeArgs struct {
8282
ProvisionedIops int64
8383
BurstingEnabled bool
8484
RequestGB int64
85+
DataCache dataCache
8586
}
8687

8788
var delVolumeSnap sync.Map

0 commit comments

Comments
 (0)