Kubernetes 更新镜像
修改deployment的镜像有三种方式
使用
edit
命令修改 Yaml 文件中的 image。(常用)kubectl edit deployment -n business wf-ai-engine-portal-ui -o yaml
使用
patch
命令kubectl patch deployment image-deployment --patch '{"spec": {"template": {"spec": {"containers": [{"name": "nginx","image":"registry.cn-beijing.aliyuncs.com/mrvolleyball/nginx:v1"}]}}}}'
使用
set image
命令kubectl set image deploy image-deployment *=registry.cn-beijing.aliyuncs.com/mrvolleyball/nginx:v2
Kubernetes 更新镜像
https://flepeng.github.io/042-云原生-02-kubernetes-Kubernetes-更新镜像/