pod运行步骤以及报错提醒信息、优先级导致containercreating问题、健康检查的意义和怎么设置,多容器应用

pod运行步骤以及报错提醒信息、优先级导致containercreating问题、健康检查的意义和怎么设置,多容器应用

pod运行步骤,pod和container的比较

enter description here
enter description here

pod综合计算报错

enter description here
enter description here

用户配置request和limit自动调整优先级qos class 配置

enter description here
enter description here

enter description here
enter description here

因为优先级问题产生的执行问题containercreating,这里执行顺序,wp是最先、然后是demo、demo2但是wp却一直未执行,是因为,request和limit配置导致的优先级kubenates调整,看运行时间可以看出,但最终都起来了。

enter description here
enter description here

enter description here
enter description here

kubenetes内存限制报错排查

https://docs.lvrui.io/2018/11/01/Kubernetes中内存资源限制引发的报错/

pod环境变量和docker环境变量cmd命令执行问题

enter description here
enter description here

为什么需要健康检查

enter description here
enter description here

enter description here
enter description here

代码示例

![enter description here](https://raw.githubusercontent.com/miaozhijuan/xiaoshujiang/master/小书匠/1586243800437.png) ![enter description here](https://raw.githubusercontent.com/miaozhijuan/xiaoshujiang/master/小书匠/1586243803362.png)

健康检查结果、不可用之后会重启整个pod保证高可用

enter description here
enter description here

http检查

enter description here
enter description here

enter description here
enter description here

enter description here
enter description here

enter description here
enter description here

结果
结果

tcp健康检查...略

多容器pod

enter description here
enter description here

enter description here
enter description here

InitContainers

enter description here
enter description here

操作:创建一个完整的pod

enter description here
enter description here

原文地址:https://www.cnblogs.com/miaozhijuan/p/12653819.html