I have a DigitalOcean flexVolume on CoreOS. I am following this documentation for CoreOS from TonyZou.
Note that CoreOS mounts /usr as read-only so instead you'll want to add --volume-plugin-dir=/etc/kubernetes/volumeplugins to KUBELET_ARGS in /etc/kubernetes/kubelet.env and put the plugins there instead.
Restart kubelet with systemctl restart kubelet.service.
I create file in /etc/kubernetes/kubelet.env with content:
KUBELET_ARGS=--volume-plugin-dir=/etc/kubernetes/volumeplugins
And my driver in /etc/kubernetes/volumeplugins folder. However, the pod using the flexvolume driver keeps remaining in ContainerCreating status. Not sure if the kubelet.env file is getting picked up by kubelet. Any suggestions?