This is a prototype to confirm that we can use Kubernetes FlexVolume Driver. This prototype was tested with Kubernetes version v1.7.3.
This is the flex volume driver that should be copied to /usr/libexec/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds/uds
A nodeagent that the above flex volume driver will notify of pods that mount a flexvolume of type nodeagent/uds. This nodeagent will then open a uds for such pods.
- Kubelet must be started with the option --enable-controller-attach-detach=false.
- You must also create the directories /tmp/nodeagent and /tmp/udsuspver/
/tmp/udsuspver is where the flex volume driver connects to Nodeagent over uds.
/tmp/nodeagent is where the unique uds per pod is hosted and mounted into each pod.