Self-healing is a feature provided by the Kubernetes open-source system.
If a containerized app or an application component fails or goes down, Kubernetes re-deploys it to retain the desired state.
Kubernetes provides self-healing by default.
Kubernetes implements self-healing at the Application Layer.
This means that if your app is well containerized and a
The redeployment is subject to the availability of sufficient infrastructure.
Through its self-healing ability, Kubernetes is able to achieve the following:
To check if the pods are functioning at desired states, Kubernetes performs two probes:
The liveliness probe checks the running status of a container. If the probe fails, Kubernetes terminates the container and creates a new one according to its restart policy.
The readiness probe checks a container for its client request serving abilities. If the probe fails, Kubernetes will remove the IP address of the affected pod.
Self-healing in Kubernetes allows business applications to operate 24/7.
Once a failed containerized app or application component is detected, which may take up to five minutes, Kubernetes will begin work to reschedule it on the existing infrastructure. This ensures that the clusters continue to function at the optimal state.
Self-healing allows for greater reliability across applications.