【发布时间】:2020-05-28 18:57:32
【问题描述】:
我已配置 Azure Kubernetes 服务。 我已经使用 Azure DevOps 中的 Kubectl 任务成功完成了几个部署。任务命令为“kubectl apply -f deployment.yaml”。
在deployment.yaml中,我有一些我想配置为变量的项目,例如下面的图像
containers:
- name: xxxxx
image: containerregistry.azurecr.io/xxxxx:5517
ports:
- containerPort: 80.
现在我正在发布 docker 映像,其建筑物编号为 5517,5518 等等。那么,当“kubectl apply -f deployment.yaml”被执行时,如何动态更改图像标签。部署。 Yaml 已签入我的 Azure DevOps 存储库。
【问题讨论】: