what is the impact of uprading kubelet if we leave the pods on the worker nodes?

0 votes
what is the impact of uprading kubelet if we leave the pods on the worker nodes - will it break running pods? why?
Jul 18 in Kubernetes by Namik
• 1,210 points
33 views

1 answer to this question.

0 votes
  • Restarting kubelet, which has to happen for an upgrade will cause all the Pods on the node to stop and be started again. 

  • It’s generally better to drain a node because that way Pods can be gracefully migrated, and things like Disruption Budgets can be honored. 

  • The problem is that `kubectl` keeps up with the state of all running pods, so when it goes away the containers don’t necessarily die, but as soon as it comes back up, they are all killed so `kubectl` can create a clean slate. 

  • As kubelet communicates with the apiserver, so if something happens in between of upgrade process, rescheduling of pods may take place and health checks may fail in between the process. 

  • During the restart, the kubelet will stop querying the API, so it won’t start/stop containers, and Heapster won’t be able to fetch system metrics from cAdvisor. 

  • Just make sure it’s not down for too long or the node will be removed from the cluster!

answered Jul 18 by Sirajul
• 40,990 points

Related Questions In Kubernetes

0 votes
1 answer
–1 vote
1 answer
0 votes
1 answer

How do I update all my pods if the image is changed but the tag is the same?

Make sure your imagePullPolicy is set to ...READ MORE

answered Jul 12 in Kubernetes by Sirajul
• 40,990 points
64 views
0 votes
1 answer
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
3,413 views
+3 votes
1 answer
0 votes
1 answer

What all components is the Master server in Kubernetes made up of?

Kubernetes is a combination of multiple parts ...READ MORE

answered Jul 11 in Kubernetes by Sirajul
• 40,990 points
127 views
0 votes
1 answer

How to determine what is the status of a deployment ?

You could use kubectl get deployment <deployment>.  If ...READ MORE

answered Jul 12 in Kubernetes by Sirajul
• 40,990 points
43 views