Syncing daemonset

221 views Asked by At

Let's say I have a daemonset running in my k8s cluster, and each pod created by the daemonset creates and writes to a directory on the node where it's running. Is there a way to automatically sync the folders with one in the masters? Given I have a multi-master cluster.

1

There are 1 answers

2
user2039152 On

You can have a persistent volume that has ReadWriteMany access mode so that all daemonsets can share the same set of data between them.

A simple example is here: http://snippi.com/s/qpge73r

Edit: as @matt commented few drivers support that as here https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes