当前位置:网站首页>Pod of kubernetes
Pod of kubernetes
2022-06-26 15:00:00 【Hua Weiyun】
Kubernetes Of pod
pod yes k8s The smallest deployment unit of , The essence is sharing Network、IPC and UTS A collection of namespaces and containers that store resources ,pod Processes run in isolated containers , Each container shares network resources and storage resources , Every pod There is a root container pause,pod There are multiple containers in , Sharing networks and resources between containers ,pause Containers manage all containers .pod Multiple applications in are more convenient for interaction .
Network sharing
adopt pause Containers , Add other business containers to pause In the container , Let all business containers be in the same namespace Next , So as to realize network sharing .
Resource sharing
All resources are shared , Namely pod persist , At present pod After being removed , new pod You can also read the previous data , The principle is pod The data is stored in volume Data volume
Pull strategy
IfNotPresent: Pull when the image does not exist
Always: Each creation pod Pull the image when
Never: Never take the initiative to pull the image
Resource constraints
pod You can set resource limits , Do not schedule resources that do not meet the resource limit
Restart strategy
pod Of restartPolicy Policy configuration restart policy ,Always Indicates that the container always restarts when it terminates and exits , The default is automatic restart ,OnFailure It means that the container is restarted only when it exits abnormally ,Never Indicates no restart
health examination
pod You can perform health checks on the service , You can determine whether the service is healthy by accessing the service interface or establishing a connection with the service , Health detection strategies include survival checks livenessProbe And readiness check readinessProbe
The survival check is to kill the container if the check fails , Then operate according to the restart policy
The readiness check is if the check fails ,kubernetes Will be able to pod from service endpoints Remove
probe The probe supports three detection methods :
- httpget: send out http request , return 200-400 The status code within the range is success
- exec: perform shell The command return status code is 0 That is success
- tcpSocket: launch TCP Socket Connection established successfully
️ Thank you for your
If you think this is helpful for you :
- Welcome to follow me ️, give the thumbs-up , Comment on , forward
- Focus on
Panpan small class, Push good articles for you regularly , There are also group chat and irregular lottery activities , You can say what you want , Communicate with the great gods , Learning together .
边栏推荐
- R语言使用ggplot2可视化泊松回归模型(Poisson Regression)的结果、可视化不同参量组合下的计数结果
- Is the account opening link given by the broker manager safe? Who can I open an account with?
- Excel-VBA 快速上手(二、条件判断和循环)
- TS common data types summary
- 15 BS object Node name Node name String get nested node content
- 工作上对金额价格类小数点的总结以及坑
- Two dimensional DFS
- 聊聊几位大厂清华同学的近况
- [solo π] ADB connects multiple mobile phones
- 一篇抄十篇,CVPR Oral被指大量抄袭,大会最后一天曝光!
猜你喜欢

Electron

Talk about the RPA direction planning: stick to simple and valuable things for a long time

【云原生】 ”人人皆可“ 编程的无代码 iVX 编辑器

Electron

The engine "node" is inconsistent with this module

15 bs对象.节点名称.节点名称.string 获取嵌套节点内容

Login authentication service

710. random numbers in the blacklist

teamviewer显示设备数量上限解决方法

Complimentary Book Cognitive Control: how does our brain accomplish tasks?
随机推荐
网上股票开户安不安全?谁给回答一下
R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、使用step函数基于AIC指标实现逐步回归筛选最佳模型、使用summary函数查看简单模型的汇总统计信息
Talk about the RPA direction planning: stick to simple and valuable things for a long time
What is the ranking of Guosen Securities? Is it safe to open a stock account?
View touch analysis
Idea shortcut key
Get the intersection union difference set of two dataframes
【soloπ】adb连接单个多个手机
C语言刷题随记 —— 乒乓球比赛
Mark: unity3d cannot select resources in the inspector, that is, project locking
Flex & bison start
The engine "node" is inconsistent with this module
R language uses GLM function to build Poisson logarithm linear regression model, processes three-dimensional contingency table data to build saturation model, uses step function to realize stepwise re
Bank of Beijing x Huawei: network intelligent operation and maintenance tamps the base of digital transformation service
Can wptx64 be uninstalled_ Which software of win10 can be uninstalled
Oracle11g database import and export method tutorial [easy to understand]
R语言dplyr包intersect函数获取在两个dataframe中都存在的数据行、获取两个dataframe交叉的数据行
The heavyweight white paper was released. Huawei continues to lead the new model of smart park construction in the future
R language dplyr package bind_ The rows function merges the rows of the two dataframes vertically. The final number of rows is the sum of the rows of the original two dataframes (combine data frames)
The JVM outputs GC logs, causing the JVM to get stuck. I am stupid