Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node(s) had volume node affinity conflict

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?

like image 617
lokesh mani deep Avatar asked Jan 24 '26 17:01

lokesh mani deep


1 Answers

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.

like image 135
Jonas Avatar answered Jan 27 '26 12:01

Jonas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!