K8S更新deployment镜像的两种方法
# kubectl set image deployment nginx nginx=registry.ctwifi.cn:5000/acloud2web/nginx:bba# kubectl patch deployment nginx --patch '{"spec": {"template": {"spec": {"containers": [{"name": "nginx","imag..
·
# kubectl set image deployment nginx nginx=registry.ctwifi.cn:5000/web/nginx:1.20
# kubectl patch deployment nginx --patch '{"spec": {"template": {"spec": {"containers": [{"name": "nginx","image":"registry.ctwifi.cn:5000/web/nginx:1.17"}]}}}}'
更多推荐
已为社区贡献15条内容
所有评论(0)