当前位置:网站首页>Detailed explanation of pod
Detailed explanation of pod
2022-08-05 23:43:00 【long journey】
Basic usage of pod
The requirement for long-running containers in the kubernetes system is: the main program needs to be running in the foreground all the time
If the docker container we create is running in the background
kuberlet creates a container that contains this containerAfter the Pod command, it is considered that the pod execution is completed, and the pod is destroyed immediately.
If a replicationController is defined for the pod, the system will monitor that the pod has terminated, and then copy the pod according to the RC definition.Quantity generates a new pod
Once this new pod is created, it enters an infinite loop after running the startup command
So kubernetes needs to start with the foreground command to create a docker image
Unable to transform the application executed in the foreground, use the open source tool supervisor to assist in the foreground operation function
Supervisor provides a mechanism that can start multiple background applications at the same time and keep the supervisor itself executing in the foreground, which can meet the needs of kubernetes for containersLocal startup requirements
A pod can be composed of one or more containers
When two containers are tightly coupled and combined into a whole to provide external services, the two containers should be packaged into one pod
When applications belonging to the same container access each other, they only need to communicate through localhost, so that this group of containers is bound in one environment
Static pod
Static pods are managed by kubelet and exist only on specific Nodes
They cannot be managed by api server and cannot be associated with replicationcontroller, deployment or daemonset
and kubelet cannot perform health checks on them
Static pods are always created by the kubelet and always run on the node where the kubelet is located
边栏推荐
猜你喜欢

LeetCode高频题76. 最小覆盖子串:欠账还债还款问题,子串考虑i开头的情况所有答案更新一波

Chrome 谷歌浏览器,如何安装合适的浏览器驱动?

Locality-Driven Dynamic GPU Cache Bypassing

云上的移动性能测试平台

在VR里弹空气吉他?开发者:手势优化有技巧

图解LeetCode——623. 在二叉树中增加一行(难度:中等)

文档对象模型 DOM ——让JS有能力和网页进行对话

Yiwei Lithium's first system product equipped with 46 series large cylindrical batteries successfully rolled off the production line

解决ARM64终端PC银河麒麟桌面系统V10SP1 grub-mkrescue生成的iso启动报错Synchronous Exception at 0x000000211BEC323C

央企施工企业数字化转型秘诀“一把手负责制”
随机推荐
超详细的PMP小白备考攻略
287.寻找重复数
如何开发直播软件,ubuntu使用mysql密码忘记怎么办
When using MQ, how to ensure that 100% of messages are not lost?
Basic use of CardView, DrawerLayout sliding menu, Fragment
TCP communications
d玩转不变
物联网如何推动农业发展
Kubernetes故障排查eBPF
C# System.Reflection.Assembly动态加载资源文件
Learn these VRay renderer HDRI lighting tricks and get 3ds Max with ease
工行里的数字员工是怎么来的?
上课作业(8)——#631. 字符串匹配问题(strs)
柔性电流探头选型指南,值得收藏
C#调用 kernel32.dll
uni-app 从零开始-页面通讯 (三)
OA项目CRUD和单元测试(一)
【TypeScript】什么是字面量类型、类型推断、类型拓宽和类型缩小?
【Eigen】旋转方向及eulerAngles函数参数说明
Three-year software engineering questions