<p>Can I replicate data between Kubernetes PV into two separate clusters situated in different data centers?</p>
<p>I have a cluster with associated PV running in Primary site. I have a separate cluster running in DR site.</p>
<p>How do I continuously replicate data in primary site to DR site so that when application is running from from DR? The data written to PR PVs are available in DR.</p>
<p>Application writes files to the PV like xls, csv etc.</p>
<p>I can use any OSS storage orchestrator like openebs, rook, storageos etc.</p>
<p>Database is outside of kubernetes.</p>

<p><a href="https://stackoverflow.com/users/1328672/narain">Narain</a> is right. <strong>Kubernetes doesn't contain any functionality that would allow you to synchronize two PVs used by two different clusters</strong>. So you would need to find your own solution to synchronize those two filesystems. It can be an existing solution like <code>lsyncd</code>, proposed in <a href="https://unix.stackexchange.com/a/307049">this thread</a> or any custom solution like the above mentioned <code>rsync</code> which can be wrapped into a simple <code>bash</code> script and run periodically in <code>cron</code>.</p>
