Pods having different containers types with same label will still be replicated by replica set?

just going to replica set training. i see that selectors tell which pods to look out for replication by replication controller or replica set.
If those pods(e.g 3) were already created and having containers of different images (different types) but having same label as dev, then how will replica set will replicate them using the definition present in replica set.yml file.

Hello, prasath.sekaran
Nothing will happen, it will not terminate/touch already running pods. In some issues if that Pod terminated then it will create a fresh pod with same image which is written in pod template and responsible to maintain desire state.

1 Like