<p>I have a pod that uses 2 persistent volumes. The persistent volumes are in different zones. While deploying I get the following error:</p>
<pre><code>node(s) had volume node affinity conflict
</code></pre>
<p>Any solution to the above problem?</p>

<blockquote>
<p>I have a pod that uses 2 persistent volumes. The persistent volumes are in different zones.</p>
</blockquote>
<p>The volumes that your Pod mount must be in the same Availability Zone, so that they can be mounted on the Node where the Pod is scheduled.</p>
<p>You <em>can</em> also use a <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/regional-pd" rel="nofollow noreferrer">Regional Persistent Volume</a> by setting the StorageClass to <code>regionalpd-storageclass</code> but this is more expensive and slower and makes your volume mirrored in <strong>two</strong> zones. But this is a bit more complicated and probably not what you want to do.</p>
