当前位置:网站首页>Kubernetes focuses on kubelet's responsibilities
Kubernetes focuses on kubelet's responsibilities
2022-07-23 17:25:00 【Zhang quandan, Foxconn quality inspector】
kubelet
One... Runs on each node kubelet Service process , Default listening 10250 port .
- Receive and execute master Instructions sent ( In fact, it is watch Mechanism to monitor , If these pod There is a change , He will perform certain operations , The specific operation is management pod The middle container )
- management Pod And Pod In the container
- Every kubelet The process will be in progress APIServer To register the node's own information , Regularly send to master The node reports the resource usage of the node , And pass cAdvisor Monitor the resources of nodes and containers .(pod Health status passes pleg Go and report , The resource usage of the node passes cadvisor Report )
Node management
kubelet It has the function of node management , It can register nodes , Update node status , So it's starting kubelet When , If you add register-node, Then the current node will be automatically registered to apiserver.
Node management mainly includes node self registration and node status update ∶
- kubelet You can set the startup parameters --register-node To determine whether to API Server Register yourself
- If kubelet No self registration mode selected , You need to configure it yourself Node Resource information , Also need to be informed kubelet On Cluster APIServer The location of
- kubelet Passed at startup APIServer Register node information , And regularly report to APIServer Send a new message to the node ,APIServer After receiving a new message , Write the information etcd.
Pod management
Related to node management, more importantly pod Management of , Because the registration management of nodes is one-time , Then there is kublet Constantly report the status , More importantly, application management , That is to say pod.
kubelet How to manage pod? It first needs to know what to start on the node pod, This involves how to get pod detailed list ,kubelet There are several ways to get pod detailed list , The first way is to file , That is to say static pod, Scan the directory to find pod Inventory file , That's all pod Start it up .
![]()
Second, it can be done through http endpoint To load the pod, You can give it a startup parameter called manifest-url, This url yes http-endpoint, You put all pod Put the list there , He will also read that url To load the pod detailed list .
The last is apiservre 了 , When apiserver After starting , It will start itself api gateway ,kubelet Connect to apiserver, They're going to monitor apiserver All the above pod, Of course, it is related to this node , After scheduling .(kubelet Will go to watch apiservre,apiserver There are pod Created , And related to this node , On this node kubelet Will go to work )
obtain Pod detailed list ∶
- file ∶ Launch parameters --config Files in the specified configuration directory ( Default /etc/Kubernetes/manifests/). This document is every 20 Check again in seconds ( Configurable ).
- HTTP endpoint(URL)∶ Launch parameters --manifest-url Set up . Every time 20 Check this endpoint every second ( Configurable ).
- APIServer∶ adopt APIServer monitor etcd Catalog , Sync Pod detailed list .
- HTTP Server∶ kubelet Listen HTTP request , And respond to simple API To submit a new Pod detailed list .
边栏推荐
猜你喜欢

Win11如何添加图片3D效果?Win11添加图片3D效果的方法

【redis入门系列】redis的数据类型及相关命令

阿里二面:什么是CAS?

Thoughts on software quality system

Pyinstaller+installforge multi file project software packaging

Keil errors and solutions (1): fcarm - output name not specified, please check 'options for target - Utilities‘

ROS2自学笔记:Rviz可视化工具

Search Binary Tree - find nodes, insert nodes, delete nodes

详解一次SQL优化

Explain SQL optimization in detail
随机推荐
二十四节气之大暑
Pymoo学习 (2):带约束的双目标优化问题
Fundamentals of C language -- 2-6 pointers, arrays and sizeof operators
怎么正确设置路由器
Sprintf and cv:: puttext
Major upgrade of openim - group chat reading diffusion model release group management function upgrade
新零售电商平台怎么做?才能实现传统零售企业数字化转型?
Investment and finance report this week: Web3 game bear market attracts gold
Pymoo学习 (1):基本概念
ROS2自学笔记:RQT可视化工具
USB通信协议深入理解
IR Drop 、EM、Noise 和Antenna
keras——accuracy_ Score formula
串的初步认识
When does MySQL use table locks and row locks?
死磕遞歸1:遞推公式
Explain SQL optimization in detail
JS if the decimal is 0, subtract it, not keep it
Pymoo learning (3): use multi-objective optimization to find the set of optimal solutions
Wechat applet wx.hideloading() will close the toast prompt box