ReplicaSet and Deployment behaviour

Hello, KodeKloud Team and community members!

Yesterday, I have updated the replica set using the edit command, as I saved the same, the changes are not reflected in the pods. Instead, I deleted the pods and the new pods are created automatically with new configurations provided.

Today, I edited one of the deployment and the changes are reflected immediately in the pods. I haven’t deleted them explicitly.

Since replica set is a subset of deployment, is this behaviour expected?

Thank you.

Yes, that behavior is expected. You can find more details here: ReplicaSet | Kubernetes.