Operating ReplicaSets
Explore the operating procedure of ReplicaSets to witness its self-healing property in action.
Deleting ReplicaSets
As you might have guessed, both the ReplicaSet and everything it created (the Pods) would disappear with the kubectl delete -f go-demo-2.yml
command.
However, since ReplicaSets and Pods are loosely coupled objects with matching labels, we can remove one without deleting the other.
We can, for example, remove the ReplicaSet we created while leaving the two Pods intact.
Get hands-on with 1400+ tech skills courses.