Venkata Ragu:
In replicaset, we need to have same labels for both Replicaset (rs) & pod so that grouping of pods will be done. Let’s say, if rs and pod are having different labels. Then to have the same label, where do we have to modify it. Is it in Pod (or) in replicaset. Can someone clarify.
Tej_Singh_Rana:
Hello, @Venkata Ragu
You can change either in the replicaset spec.selector or in the pod’s label spec.template.metadata.labels.
Tej_Singh_Rana:
Both should be matched.
Tej_Singh_Rana:
and If pod is already running and has a different label then you have to change into the pod’s label.
Saheed Adeosho:
work at the granular(smaller) level of pods- make sure your selector and template.spec.metadata labels are same
Venkata Ragu:
Thank You Tej & Saheed. So labels should be changed at Pod level at this is at smallest level.