Skip to content

Sidecar container that watches Kubernetes PersistentVolumeClaim objects and triggers CreateVolume/DeleteVolume against a CSI endpoint

License

Notifications You must be signed in to change notification settings

wackxu/external-provisioner

 
 

Repository files navigation

Kubernetes external provisioner that works with CSI volumes.

This is an example external provisioner for Kubernetes which provisions using CSI Volume drivers.. It's under heavy development, so at this time README.md is notes for the developers coding. Once complete this will change to something user friendly.

Build

make provisioner

Test

Start Kubernetes

Run a local kubernetes cluster built from latest master code

Run Storage Provider

Use HostPath drivers

Go to drivers and run:

_output/hostpathplugin --drivername mydriver  --endpoint unix://tmp/csi.sock --nodeid foobar -v=5

Start external provisioner

_output/csi-provisioner -kubeconfig /var/run/kubernetes/admin.kubeconfig -alsologtostderr -provisioner csi-flex

Create Storage class, PVC, and Pod

kubectl create -f examples/sc.yaml
kubectl create -f example/pvc2.yaml
kubectl create -f example/pod.yaml

Delete PVC

kubectl delete -f example/pvc1.yaml

About

Sidecar container that watches Kubernetes PersistentVolumeClaim objects and triggers CreateVolume/DeleteVolume against a CSI endpoint

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 90.9%
  • Makefile 5.1%
  • Shell 3.2%
  • Ruby 0.8%