Hao Liang's Blog

Embrace the World with Cloud Native and Open-source

HPA in Kubernetes

一、Introduction to HPA HPA (Horizontal Pod Autoscaler) Pod automatically scales up and down. K8S realizes dynamic addition and reduction of the number of Pod instances by detecting various indicators of the containers running in the Pod (CPU usage, memory usage, network requests). Early Kubernetes versions only supported the detection of CPU indicators because it was implemented through

【Code Breakdown】Kubernetes scheduler--Analysis of Predicates preselection algorithm

Scheduler workflow When we use K8S clusters, we often need to create, modify, and delete Deployment Controllers. K8S will create, destroy, and reschedule Pods on the appropriate nodes. This scheduling process is implemented through the K8S Scheduler scheduler. Schduler’s workflow is shown below: The Informer component has been monitoring changes in Pod information in etcd. To be precise, it is monitoring changes in the Spec.nodeName field in Pod information. Once

【Code Breakdown】Kubernetes scheduler--Analysis of Priority optimization algorithm

Scheduler workflow When we use K8S clusters, we often need to create, modify, and delete Deployment Controllers. K8S will create, destroy, and reschedule Pods on the appropriate nodes. This scheduling process is implemented through the K8S Scheduler scheduler. Schduler’s workflow is shown below: The Informer component has been monitoring changes in Pod information in etcd. To be precise, it is monitoring changes in the Spec.nodeName field in Pod information. Once it detects that this field is empty, it is considered that there are Pods in the cluster that have not been scheduled to Node.