apiVersion:v1kind:Podmetadata:name:freeboxspec:containers:-name:busyboximage:busybox:latestimagepullPolicy:IfNotPresent当apply 这个yaml文件后,为什么运行kubectl get pod freebox ,发现freebox没有运行?
启动就运行结束了,所以状态异常
容器里面需要有进程启动,或者脚本启动
你需要在pod中运行一个常驻进程,比如sleep 3600,命令如下:
kubectl run busybox --image=busybox -- sleep 3600
关于TWT使用指南社区专家合作厂商入驻社区企业招聘投诉建议版权与免责声明联系我们 © 2024talkwithtrend — talk with trend,talk with technologist京ICP备09031017号-30