我已经配置了 Azure Kubernetes 服务。 我在 Azure DevOps 中使用 Kubectl 任务成功完成了几个部署。任务命令是“kubectl apply -f deployment.yaml”。
在 deployment.yaml 中,我有一些项目我想配置为变量,例如下面的图像
containers:
- name: xxxxx
image: containerregistry.azurecr.io/xxxxx:5517
ports:
- containerPort: 80.
现在我发布的是building number为5517,5518等的docker镜像。那么,当执行“kubectl apply -f deployment.yaml”时,如何即时更改图像标签。部署。 Yaml 已 checkin 我的 Azure DevOps 存储库。
最佳答案
关于azure-devops - 使用 AzureDevops 在 Azure Kubernetes 服务 (AKS) 中部署容器镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60201538/