Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the expulsion of Kubernetes Pod

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to understand Kubernetes Pod expulsion". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to understand Kubernetes Pod expulsion"!

In Kubernetes, the most important resources used by Pod are CPU, memory and disk IO, which can be divided into compressible resources (CPU) and incompressible resources (memory, disk IO). Compressible resources cannot cause Pod to be expelled, because when the CPU usage of Pod is high, the system can limit the CPU usage of Pod by reassigning weights. For incompressible resources, if there are not enough resources, you cannot continue to apply for resources (running out of memory). At this time, Kubernetes will expel a certain number of Pod from the node to ensure that there are sufficient resources on the node.

When incompressible resources are insufficient, Kubernetes uses kubelet to expel Pod. Kubelet is not expelled randomly, it has its own set of expulsion mechanism. The kubelet of each computing node monitors the resource usage of the node by grabbing the cAdvisor index. Let's analyze each situation in detail.

1. Insufficient storage resources

The following are kubelet default eviction triggers for node storage:

Nodefs.available

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report