kubernetesgoogle-kubernetes-enginereplicaset

Is ReplicaSet self-healing?


I know many Kubernetes objects are self-healing and many are not.

In the case of ReplicaSet, I searched online a lot but could not find a direct answer on whether ReplicaSet is self-healing or not. Can anyone please share?


Solution

  • ReplicaSets themselves are not self-healing, hence if you delete a ReplicaSet then Kubernetes won’t automatically create a new ReplicaSet.

    But ReplicaSet makes sure that Pods get self-healed, hence if you delete a Deployment's Pod then ReplicaSet will ensure that another Pod gets created.