I am searching for a solution to create a (persistent) volume on each node in the cluster where multiple pods can write into and a daemon set can read from.
My first idea was to use the hostPath volume. But after reading the documentation, it comes with some downsides, especially that containers must run as root when writing. After that I thought the local volume could solve my problem. But with local persistent volumes, the scheduler ensures that a pod using a local persistent volume is always scheduled to the same node. This pod to node pinning is not desired in my case.
Is there a way to disable the pod to node pinning while using local volumes? Or is there an even better way to achieve a file-based data exchange between pods and a daemonset.
Kubernetes version: 1.20
Cloud being used: azure
Installation method: aks