When the mounted hostpath is tmpfs or when mounting a secret, the container cannot access the data. These two types of mounts are tmpfs, and due to memory isolation between the host and the virtual machine, the virtual machine will reallocate tmpfs, resulting in empty data.
Fix:Except for empty dir allocated by memory, all other tmpfs are bind-mounted into the virtual machine.
When the mounted hostpath is tmpfs or when mounting a secret, the container cannot access the data. These two types of mounts are tmpfs, and due to memory isolation between the host and the virtual machine, the virtual machine will reallocate tmpfs, resulting in empty data.
Fix:Except for empty dir allocated by memory, all other tmpfs are bind-mounted into the virtual machine.