Implement basic CSI driver

Currently can create and remove volumes, but resizing and snapshots is not supported yet
This commit is contained in:
Vitaliy Filippov
2021-05-16 01:15:43 +03:00
parent eaac1fc5d1
commit fd8244699b
22 changed files with 1808 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
namespace: vitastor-system
name: vitastor-csi-storage-class
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: csi.vitastor.io
volumeBindingMode: Immediate
parameters:
etcdVolumePrefix: ""
poolId: "1"
# you can choose other configuration file if you have it in the config map
#configPath: "/etc/vitastor/vitastor.conf"
# you can also specify etcdUrl here, maybe to connect to another Vitastor cluster
# multiple etcdUrls may be specified, delimited by comma
#etcdUrl: "http://192.168.7.2:2379"
#etcdPrefix: "/vitastor"