We already know that Kubernetes is the No. 1 orchestration platform for container-based applications, automating the deployment and scaling of these apps, and streamlining maintenance operations. It coordinates a highly available cluster of computers that are connected to work as a single unit. The abstractions in Kubernetes allow you to deploy containerized applications to a cluster without tying them specifically to individual machines. The Kubernetes cluster usually comprises multiple nodes, what happens when one of the nodes fails? we are going to look at how this scenario is being handled by Kubernetes in this post.
Master components provide the cluster’s control plane. Kubernetes Control Plane consists of a collection of below processes on your cluster:
Master components make global decisions about the cluster (like for example, scheduling applications), and detecting and responding to cluster events.
Now that we have a good understanding of Kubernetes architecture, we will look at what happens when one of the nodes fails?
This section details what happens during a node failure and what is expected during the recovery.
kubectl get nodes
will report NotReady
state.NotReady
node will change to either Unknown
or NodeLost
.This is based on pod eviction timeout settings, the default duration is five minutes.Terminating
state and the attached volumes cannot be released/reused, the newly created pod(s) will get stuck in ContainerCreating
state. There are 2 options now: In summary, if the failed node is recovered later, Kubernetes will restart those terminating pods, detach the volumes, wait for the old VolumeAttachment cleanup, and reuse (re-attach & re-mount) the volumes. Typically these steps would take about 1 ~ 7 minutes.
Like this post? Don’t forget to share it!
Operating a business often entails balancing tight schedules, evolving market dynamics, and shifting consumer requirements.…
Of course, every site has different needs. In the end, however, there is one aspect…
In today's digital-first world, businesses must adopt effective strategies to stay competitive. Social media marketing…
62% of UX designers now use AI to enhance their workflows. Artificial intelligence (AI) rapidly…
The integration of artificial intelligence into graphic design through tools like Adobe Photoshop can save…
The cryptocurrency trading world has grown significantly in recent years, with automation playing a key…
This website uses cookies.