Reputation: 31
I have a pod that uses 2 persistent volumes. The persistent volumes are in different zones. While deploying I get the following error:
node(s) had volume node affinity conflict
Any solution to the above problem?
Upvotes: 3
Views: 10304
Reputation: 129065
I have a pod that uses 2 persistent volumes. The persistent volumes are in different zones.
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.
You can also use a Regional Persistent Volume by setting the StorageClass to regionalpd-storageclass
but this is more expensive and slower and makes your volume mirrored in two zones. But this is a bit more complicated and probably not what you want to do.
Upvotes: 4