Kubernetes .. Secret behind Graceful and Forceful Termination of Kubernetes Pod ... #K8s @AlokKumar

preview_player
Показать описание
Want questions on Kubernetes CKA exam with complete lab?
Join in our YouTube Channel Membership program, and get complete set of Kubernetes CKA Questions:

==========================================================================

Kubernetes .. Secret behind Graceful and Forceful Termination of Kubernetes Pod ..... #Kubernetes #CKA @AlokKumar

When you execute the kubectl delete pod command in Kubernetes, several actions are taken behind the scenes to gracefully terminate and remove the specified pod.
Here's a step-by-step breakdown of what happens:

1. kubectl Command Execution
2. Kubectl Interaction with API Server
3. API Server Verification
4. Pod Deletion Request Processing
5. Controller Manager Monitoring
6. Scheduler Handling
7. Kubelet Termination
8. Graceful Termination
9. Termination Timeout
10.Pod Cleanup
11.API Server Update

When you forcefully delete a pod in Kubernetes, it means you're terminating the pod immediately without giving the containers within the pod a chance to perform graceful shutdown.
This is achieved by sending a SIGKILL signal to the pod's containers, forcing them to stop abruptly. Here's what happens behind the scenes when you forcefully delete a pod:

1. Forceful Deletion Request
2. Kubectl Interaction with API Server
3. API Server Verification
4. Immediate Termination
5. Pod Cleanup
6. API Server Update
7. kubectl Feedback

It's important to note that forcefully deleting a pod might lead to data loss or incomplete transactions within the containers.
This approach is typically used when a pod is unresponsive or malfunctioning and cannot be terminated gracefully.

In most cases, it's recommended to attempt a graceful deletion first (without the --force flag) to give the containers a chance to shut down properly and perform cleanup actions.

#Kubernetes #CKA #DevOps #CKAD #learningeveryday #AWS #Cloud #devopscommunity #cloudcomputing

Don’t Forget To Like, Comment, Share & Subscribe to my Channel, It always motivates me.

Join in YouTube Membership program, and get complete set of Kubernetes CKA Questions:

➡Popular playlist Videos of My Channel
********************************************

➡You can follow me:
********************************************

[ THANKS FOR WATCHING THIS VIDEO ]

Alok Kumar
From - Noida(India) @AlokKumar
Рекомендации по теме