当前位置:网站首页>Kubernetes family container housekeeper pod online Q & A?
Kubernetes family container housekeeper pod online Q & A?
2022-07-02 16:10:00 【What a fat thing】
Kubernetes Family container housekeeper Pod Answer questions online
I don't know how to study k8s Do my friends have the same questions as me ?
k8s Why not run the container directly , Rather let Pod intervention ?
Pod What is it again? ? Why is containerization so common k8s To launch Pod Concept ?
Little sunflower Pod Class begins
This article mainly understands a core point , What is? Pod? Let's not focus on Pod How do you use it? , How to schedule , How to achieve best practices . These issues will continue to be discussed later , I don't know why k8s Want to have Pod Under the circumstances , There is no practical point in delving into best practices first .
I'm sorry -k8s Special field
Pod The official definition of
Pod Yes, you can. Kubernetes Created and managed in 、 The smallest deployable cell .
Pod ( It's like in a whale pod or a pea pod ) It's a group. ( One or more ) Containers
These containers share storage 、 The Internet 、 And how to run these container declarations .
Pod Content in is always juxtaposed (colocated) And dispatch together , Run in a shared context .
Pod What is modeled is application specific “ Logical host ”,
It contains one or more application containers ,
These containers are relatively tightly coupled .
Linux Namespace 、cgroups
*namespace*
Linux namespace Provides a Isolate system resources at the kernel level Methods , By integrating the system Global resources Put it in Different namespace To achieve the purpose of resource isolation .Linux in Isolation mechanism of six types of system resources :
● Mount: Isolation File system mount point
● UTS: Isolation Host name and domain name information
● IPC: Isolation Interprocess communication
● PID: Isolation Process ID
● NetWork: Isolation Network resources
● User: Isolation Users and user groups ID
cgroups
cgroups Limit a process group The upper limit of resources that can be used , Include CPU
, Memory , disk , Network bandwidth, etc , At the same time, you can set the process priority , And suspend and resume the process .
docker From the perspective of understanding Pod
Pod The shared context of includes a set of Linux Namespace 、 Control group (cgroup) And maybe some other isolation aspect , It's used to isolate Docker Container technology . stay Pod In the context of , Each individual application may be further isolated .
Just Docker In terms of concepts ,Pod Similar to a set of shared namespace and file system volumes Docker Containers .
Pod How to coordinate multiple containers in ?
Pod Designed to support the formation of Multiple collaborative processes of cohesive service units ( In the form of a container ).
Pod Containers in the cluster are automatically scheduled to containers in the cluster On the same physical machine or virtual machine , And can Scheduling together .
Between containers can Shared resources and dependencies 、 Communicate with each other 、 When and how coordination will terminate itself .
for example , You may have a container , Provide... For files in shared volumes Web Server support , And a single “sidecar( Hanging bucket )” The container is responsible for updating these files remotely , As shown in the figure below :
How to understand Pod Shared context ?
One Pod The shared context of is Linux Namespace 、cgroups And other potentially isolated content . stay Pod in , Containers share a IP Address and port space , They can go through localhost Find each other .
stay The same Pod In the container , have access to System V or POSIX The signal Carry out standard Interprocess communication and shared memory .
stay Different Pod In the container , Have Different IP Address , Therefore, it is not possible to communicate directly between processes . Container room usually Use Pod IP Address to communicate .
Pod The context of can be understood as multiple linux Union of namespaces :
● PID Namespace ( The same Pod Other processes can be seen in the application )
● The Internet Namespace ( The same Pod For the same IP The address and port have permissions )
● IPC Namespace ( The same Pod Applications in can be through VPC perhaps POSIX communicate )
● UTS Namespace ( The same Pod Applications in share a host name )
《k8s- Enterprise container application hosting 》- Continuous updating
The first paragraph : know k8s What is it? ? Recommended reading : 《 Cloud primordial new era trendsetter k8s Why is it unique in containerization ?》
The second paragraph : know k8s Members of the family ? Recommended reading : 《 Sneak in while colleagues play games k8s A family makes up lessons 》
The third paragraph : know k8s Container housekeeper Pod? Recommended reading : 《Kubernetes Family container housekeeper Pod Answer questions online 》
The fourth paragraph : To be updated ? Casual reading is recommended : 《 I'm sorry 》
边栏推荐
- 2022最新最详细必成功的在Vscode中设置背景图、同时解决不受支持的问题
- Leetcode --- longest public prefix
- Bean configuration override in boot
- 潘多拉 IOT 开发板学习(RT-Thread)—— 实验2 RGB LED 实验(学习笔记)
- 纪念成为首个 DAYU200 三方 demo 贡献者
- Demo of converting point cloud coordinates to world coordinates
- Ssh/scp does not prompt all activities are monitored and reported
- Aike AI frontier promotion (7.2)
- (Wanzi essence knowledge summary) basic knowledge of shell script programming
- Idea jar package conflict troubleshooting
猜你喜欢
JS learning notes - process control
Vscode设置标签页多行显示
End time processing method of wechat v3native payment settings
如何实现十亿级离线 CSV 导入 Nebula Graph
关于mysql安装的一些问题
HMS core machine learning service helps zaful users to shop conveniently
idea 公共方法抽取快捷键
Effectively use keywords to increase Amazon sales
去除router-link中的下划线
mysql min() 求某条件下最小的值出现多个结果
随机推荐
Experiment collection of University Course "Fundamentals of circuit analysis". Experiment 5 - Research on equivalent circuit of linear active two terminal network
Solve the problem of base64encoder error
Route service grid traffic through two-level gateway design
Song of cactus - throwing stones to ask the way (2)
Boot transaction usage
原神2.6服务端下载以及搭建安装教程
Various entanglements between qvariant and Jason -- QT
Source code look me
Comprehensively interpret the background and concept of service mesh
Tree binary search tree
Comment réaliser un graphique Nebula d'importation CSV hors ligne de niveau milliard
The sea of stars hidden behind the nebula graph
HMS core machine learning service helps zaful users to shop conveniently
Register as a harmonios developer and install deveco studio 3.0 beta2 for harmonios
MySQL calculates the data within the longitude and latitude range
全方位解读服务网格(Service Mesh)的背景和概念
Floyed "suggestions collection"
隐藏在 Nebula Graph 背后的星辰大海
Fastjson list to jsonarray and jsonarray to list "suggested collections"
After the win10 system is upgraded for a period of time, the memory occupation is too high