Using device plugin in microk8s

Hello,
I am trying to use a device plugin with microk8s 1.8 channel.
kubelet is running with --feature-gates=DevicePlugins=true but when I attempt to register the plugin I always get this error:

Register: registration failed 12: unknown service deviceplugin.Registration

the registration message itself is this:

    R.set_version("v1");
    R.set_endpoint("/var/lib/kubelet/device-plugins/kubelet.sock");
    R.set_resource_name("mydevice.com/device");

the device is just made up of course. I can tell that I am talking to kubelet as if I suspend it the call hangs.

Do you have an idea of what I am doing wrong?

Thanks you very much
Spago

Hi,

Could it be that you need to point to /var/snap/microk8s/common/var/lib/kubelet/pod-resources/kubelet.sock instead of /var/lib/kubelet/device-plugins/kubelet.sock?

Thanks for your reply, I tried that socket but I get the same error:

registration failed12: unknown servicedeviceplugin.Registration

Keep looking around.