背景
按照官方文档试用新版的in-place特性时,一字不差地执行了,但是却出现了执行失败的情况:文章来源地址https://www.toymoban.com/news/detail-473565.html
- 执行
kubectl -n qos-example patch pod qos-demo-5 --patch '{"spec":{"containers":[{"name":"qos-demo-ctr-5", "resources":{"requests":{"cpu":"800m"}, "limits":{"cpu":"800m"}}}]}}'
后该pod一直处于RunContainerError
状态; - 使用
kubectl describe
查看详情,eventlog如下:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 2m41s default-scheduler Successfully assigned qos-example/qos-demo-5 to 172.30.94.201
Normal Pulled 2m38s kubelet Successfully pulled image "nginx" in 2.468850418s (2.468866698s including waiting)
Normal Started 2m38s kubelet Started container qos-demo-ctr-5
文章来源:https://www.toymoban.com/news/detail-473565.html
到了这里,关于k8s 1.27新特性in-place使用方法:避坑指南(官方文档有坑,已提issue)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!