当前位置:网站首页>My colleague asked a question I never thought about. Why did kubernetes' superfluous' launch the static pod concept?
My colleague asked a question I never thought about. Why did kubernetes' superfluous' launch the static pod concept?
2022-06-26 07:30:00 【What a fat thing】
My colleague asked me a question I had never thought about , Why? Kubernetes want " carry coals to newcastle " Launch static Pod Concept ?
We know k8s in Pod It can be said that he is a qualified container housekeeper ,Pod Designed to support multiple containers that can be scheduled together , Between containers can Shared resources and dependencies 、 Communicate with each other 、 Coordinate when and how to run or terminate itself .
I don't know if you noticed our housekeeper's Static twin Pod?
Why? k8s Will launch static Pod Concept ?

Embarrassing fat nonsense, class starts


static state Pod What's special ?
Under normal circumstances Pod Is in Master On the unified management , Appoint , Distribute . Static Pod Just don't accept Master Management of , At the designated node Fall for it kubelet Startup time , Meeting Auto start All defined static Pod.
static state Pod Directly by the On a particular node kubelet process To manage , Not through master nodes apiserver .⽆ Law and we often ⽤ The controller Deployment perhaps DaemonSet Into the ⾏ relation ,kubelet Direct monitoring of each Pod, And in Restart and self-healing in case of failure .
static state Pod Always bound to ⼀ individual kubelet , also Always run ⾏ At the same time ⼀ Nodes On .
Now that you find out API Unable to manage , Why can “ See ” Running static Pod?
kubelet Will manage static for each of it Pod, call api-server stay Kubernetes Of apiserver To create a ⼀ A mirror image Pod(Mirror Pod). So we can apiserver The... Was found in the query Pod, Can also pass through kubectl Etc , But not through apiserver Into the ⾏ control ( For example, you cannot delete ).
Ordinary Pod Failure self-healing and static Pod What's the difference? ?
routine Pod use The workload Resources to create and manage multiple Pod. The controller of the resource can handle the management of the replica 、 go online , And in Pod Provide self-healing capability in case of failure .
The node itself can try Restart or completely replace operation ,kubernetes The default self-healing mechanism is when Pod Exit time Pod To restart .
If the restart fails , You can pull it again Pod, Realize the replacement of doubles :
for example , If a node fails , The controller notices that Pod Has stopped working , You can create alternative double Pod. The dispatcher will take the stand in Pod Schedule to a healthy node to execute .
Here are some examples of managing one or more Pod Examples of workload resources for :
DeploymentStatefulSetDaemonSet
static state Pod Is specified to run on a specific node Pod, Completely to kubelet Supervise self-healing , Restart will also be performed on the same specified node . static state Pod Always bound to ⼀ individual kubelet , And always carry ⾏ At the same time ⼀ A node .
If kubectl Stop or delete static Pod What will happen ?
If you try to delete or stop , static state Pod Will enter **Pending** state , And will soon be kubelet restart .
What if I have to delete it ?
kubelet Startup time , from –Pod-manifest-path= or –manifest-url= Parameter specified ⽬ Record all the defined Pod Will automatically create .
Delete only in The configuration directory Delete the corresponding yaml The configuration file .
Running kubelet The configured directory will be scanned regularly , And according to what appears or disappears in the file Pod Configuration file to create or delete Pod.
static state Pod What's the role ? What are the built-in static Pod?
static state Pod Usually bound to kubelet. Its main use is Run the self managed control surface .
Because using static Pod Can effectively prevent the passage of kubectl、 Or MIS deletion of management tool operation , It can be used to deploy some core component applications , Ensure that application services always run in a stable number and provide stable services .
In a self hosting scenario , Use kubelet To manage individual control surface components . for example :
- The scheduling component
kube-scheduler - Secretary assembly
kube-apiserver - Core brain components
kube-controller-manager - Data warehouse components
etcd

《Kubernetes- Enterprise container application hosting 》- Keep talking nonsense
The first paragraph : Recommended reading : 【 Cloud primordial new era trendsetter k8s Why is it unique in containerization ?】
The second paragraph : Recommended reading : 【 Sneak in while colleagues play games k8s A family makes up lessons 】
The third paragraph : Recommended reading : 【Kubernetes Family container housekeeper Pod Answer questions online 】
The fourth paragraph : Recommended reading : 【 My colleague asked me a question I had never thought about , Why? Kubernetes want " carry coals to newcastle " Launch static Pod Concept ?】
The fifth paragraph : To be updated ? Casual reading is recommended : 【 I'm sorry 】
边栏推荐
- Quickly find five channels for high-quality objects, quickly collect and avoid detours
- Item2 installation configuration and environment failure solution
- Redis系列——redis启动,客户端day1-2
- Tetradecanoxy tetraphenylporphyrin methacrylate mm-tpp-14c; Cetanoxy tetraphenyl porphyrin methacrylate mm-tpp-16c; Purple solid; Qiyue supply
- php array_ Merge details
- This paper analyzes the use method and implementation principle of eventbus event bus
- Liangshui Xianmu shows his personal awareness as a unity3d worker
- SQL
- Error reported by using two-dimensional array [[]] in thymeleaf: could not parse as expression
- oracle创建带返回值的存储过程并sql执行调用
猜你喜欢
![[recommend 10 easy idea plug-ins with less tedious and repetitive code]](/img/74/69ca02e3d83404f7b0df07c308a59d.png)
[recommend 10 easy idea plug-ins with less tedious and repetitive code]

How can I find the completely deleted photos in Apple mobile phone?

Analyze 5 indicators of NFT project

一项听起来大胆,并且非常牛逼的操作——复刻一个 Netflix

Important reference indicators for data center disaster recovery: RTO and RPO

执行npm install -g serve时报错权限权限问题解决方案

oracle创建带返回值的存储过程并sql执行调用

Jemter 压力测试 -可视化工具-【使用篇】

Apache InLong毕业成为顶级项目,具备百万亿级数据流处理能力!

【推荐一款实体类转换工具 MapStruct,性能强劲,简单易上手 】
随机推荐
$a && $b = $c what???
Big factory interview TCP protocol classic 15 consecutive questions! 22 pictures to make you fully understand
Apache InLong毕业成为顶级项目,具备百万亿级数据流处理能力!
Typescript: use polymorphism instead of switch and other conditional statements
Database persistence
Redis series - redis startup, client day1-2
Service interface test guide
QT basics tutorial: qstring
一文深入底层分析Redis对象结构
Introduction to mapping in ES
The long path of Xiao Sha (graph theory, Euler diagram)
In interface testing, several methods to verify the success of deleting interfaces
Calculate division in Oracle - solve the error report when the divisor is zero
Meso tetra (4-bromophenyl) porphyrin (tbpp); 5,10,15,20-tetra (4-methoxy-3-sulfonylphenyl) porphyrin [t (4-mop) ps4] supplied by Qiyue
卡尔曼滤波器_Recursive Processing
快速找到优质对象的5种渠道,赶紧收藏少走弯路
B站增量数据湖探索与实践
Teach you how to use the harmonyos local simulator
Installation homebrew error summary
Item2 installation configuration and environment failure solution