I'm trying to run a simple flexvolume plugin driver on windows node to enable connectivity with an external SMB share. I followed the steps listed out here https://github.com/microsoft/K8s-Storage-Plugins/tree/master/flexvolume/windows
Placed the driver plugin in the mentioned path but the problem is the plugin is not getting picked up by gke. The error details are as below.
Warning FailedMount 8s (x2 over 21s) kubelet, gke-windows-node-pool-e4e7a7bf-f2pc Unable to attach or mount volumes: unmounted volumes=[smb-volume], unattached volumes=[default-token-jf28b smb-volume]: failed to get Plugin from volumeSpec for volume "smb-volume" err=no volume plugin matched
Not sure what I'm missing here. Any help would be great. Thanks in Advance.
Just faced with a similar issue on a kubeadm on prem configuration, have used Process Monitor to find the proper location the kubelet.exe process looks for volume plugins.
As result my actual windows node SMB preparation:
curl -L https://github.com/microsoft/K8s-Storage-Plugins/releases/download/V0.0.3/flexvolume-windows.zip -o flexvolume-windows.zip
Expand-Archive flexvolume-windows.zip C:\var\lib\kubelet\usr\libexec\kubernetes\kubelet-plugins\volume\exec\