Bind-mount from node - does it work?

hi,
i am trying to bind mount a volume from the node the container is running on - the construct is as follows.

  • a kvm virtual machine is running rancheros
  • a host path is mounted in /mnt/volumes via 9p
  • the path is writable by the node (tried it as root and rancher)
  • i started a mariadb container via the rancherui

result: the path is mounted in overlay2 not from the node. is this supposed to work? is my understanding correct?

any answer is appreciated,

thanks,

alex

ok i found it, it is a kubernetes bug.

referenced here:

the workaround using an empty subpath is not elegant, but it works