Huamin Chen f7f8e13909
Merge pull request #9 from rootfs/rbd-refactoring
rbd plugin refactoring: remove k8s clientSet
2018-02-06 13:33:52 -05:00
2018-02-06 18:30:05 +00:00
2018-02-06 18:30:05 +00:00
2018-01-15 11:50:50 -05:00
2018-01-17 15:38:09 -05:00
2018-01-10 18:27:56 +00:00
2018-01-15 11:50:50 -05:00
2018-01-15 11:50:50 -05:00
2018-01-10 16:12:00 +00:00
2018-02-06 18:30:05 +00:00

Ceph CSI

Container Storage Interface (CSI) driver, provisioner, and attacher for Ceph RBD and CephFS

Prerequisite

Enable Mount Propagation in Docker

Comment out MountFlags=slave in docker systemd service then restart docker service.

# systemctl daemon-reload
# systemctl restart docker

Enable Kubernetes Feature Gates

Enable features MountPropagation=true,CSIPersistentVolume=true and runtime config storage.k8s.io/v1alpha1=true

Build

# make container

Test

Start rbdplugin and driver registrar

# kubectl create -f deploy/kubernetes/rbdplugin.yaml

Start CSI external volume provisioner

# kubectl create -f deploy/kubernetes/csi-provisioner.yaml

Start CSI external volume attacher

# kubectl create -f deploy/kubernetes/csi-attacher.yaml

Verify all componets are ready

# kubectl get pod
NAME                             READY     STATUS    RESTARTS   AGE
csi-attacher-0                   1/1       Running   0          6s
csi-nodeplugin-rbdplugin-kwhhc   2/2       Running   0          6m
csi-provisioner-0                1/1       Running   0          1m

Create a CSI storage class

Create a PVC

Create a Pod

Description
CSI driver for Ceph
Readme Pixar 157 MiB
Languages
Go 94.8%
Shell 2.9%
Python 1.3%
Makefile 0.6%
Smarty 0.3%
Other 0.1%