[ad_1]
I am using local persistant volumes in my kubernetes cluster, I have currentky two worker nodes in my cluster(node1, node2). So while creating local Peristant Volume I have added node affinity with these nodes.
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- node1
- node2
10 deployments are working using these PVs. Now, I want to add a new worker node to the cluster(node3). I tried to modify the Persistent Volume but I can’t modify the nodeAffinity as this is showing “field is immutable”.
How should I proceed now? If I don’t modify the PV, pods will not get scheduled on the new worker node?
How to tackle this situation?
[ad_2]