abhiram guvvala:
Hi… regarding ReplicationController vs ReplicaSet …How will ReplicationController deal with pods that are already in running state and have labels… The RC yaml has no selectors…
Tej_Singh_Rana:
Hello, @abhiram guvvala
> If specified, the .spec.template.metadata.labels
must be equal to the .spec.selector
, or it will be rejected by the API. If .spec.selector
is unspecified, it will be defaulted to .spec.template.metadata.labels
.
Reference:-
https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#pod-selector