K8s Informer Mechanics Part II - Reflector

为了能实时从apiserver获取资源的状态及变化,又最大限度得降低apiserver工作负载,k8s 使用了一种叫informer的机制,通过精妙的设计,无需任何中间件,只依靠最简单的http协议 便实现了需求。作为介绍Informer机制系列文章的第二篇,我们详细分析Reflector模块的代码实现。

K8s Informer Mechanics Part I

为了能实时从apiserver获取资源的状态及变化,又最大限度得降低apiserver工作负载,k8s 使用了一种叫informer的机制,通过精妙的设计,无需任何中间件,只依靠最简单的http协议 便实现了需求。informer机制是如何工作的呢?

What Happened to Kubelet When Pod Is Deleted

The source code of Kubelet is quite complicated. In order to better understand it, we start by thinking about an operation we play normally: delete a pod. What will happen to Kubelet and how will it delete containers eventually? Let’s go through the code module by module while keeping these questions in mind.

Java Attach Mechanism

Today, we’ll uncover the mystery of an important mechanism provided by JVM: Attach Mechanism, which is used to enable communication between processes in and out of JVM.