The folllowing feature gates and runtime config have to be enabled to deploy the driver
FEATURE_GATES=CSIPersistentVolume=true,MountPropagation=true
RUNTIME_CONFIG="storage.k8s.io/v1alpha1=true"
Mountprogpation requries support for privileged containers. So, make sure privileged containers are enabled in the cluster.
docker pull quay.io/k8scsi/csi-attacher:v0.2.0
docker pull quay.io/k8scsi/driver-registrar:v0.2.0
docker pull quay.io/k8scsi/csi-provisioner:v0.2.0
docker build -t cfscsi:v1 deploy/.
kubectl create configmap kubecfg --from-file=deploy/kubernetes/kubecfg
kubectl create -f deploy/kubernetes/cfs.yaml
Please update the cfs Master Hosts & volumeName information in nginx-pre.yaml file.
docker pull nginx
kubectl create -f deploy/examples/nginx-pre.yaml
docker pull nginx
kubectl create -f deploy/examples/cfs-pvc.yaml
kubectl create -f deploy/examples/cfs-pv.yaml
kubectl create -f deploy/examples/nginx-dynamic.yaml
Please read Drivers for more information
Please, DO NOT submit PRs to add new drivers here unless they are just examples. Real CSI drivers are to be housed on their own repo separate from this one. You are then welcomed to send a PR to https://github.com/kubernetes-csi/docs to add the Driver page.