Using device plugin in microk8s

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:


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


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.