我是一个完整的Azure DevOps初学者,试图在Azure DevOps中设置AKS群集和发布管道以使用Helm对其进行部署。
我创建了AKS群集(为了简化过程,禁用了RBAC),将发布管道连接到它,使用Azure Cloud Shell连接到AKS群集并运行了头盔init,但是由于该问题发布失败:< / p>
2018-12-14T16:35:55.9461744Z ##[section]Starting: helm upgrade <REDACTED>
2018-12-14T16:35:55.9467164Z ==============================================================================
2018-12-14T16:35:55.9467299Z Task : Package and deploy Helm charts
2018-12-14T16:35:55.9467387Z Description : Deploy, configure, update your Kubernetes cluster in Azure Container Service by running helm commands.
2018-12-14T16:35:55.9467647Z Version : 0.138.14
2018-12-14T16:35:55.9467963Z Author : Microsoft Corporation
2018-12-14T16:35:55.9468016Z Help : [More Information](https://go.microsoft.com/fwlink/?linkid=851275)
2018-12-14T16:35:55.9468114Z ==============================================================================
2018-12-14T16:35:58.3023980Z [command]/opt/hostedtoolcache/helm/2.11.0/x64/linux-amd64/helm upgrade --namespace dev --install --recreate-pods --force --values /home/vsts/work/r1/a/_<REDACTED>/helm-charts/<REDACTED>/values-dev.yaml --set image.tag=development --wait <REDACTED> /home/vsts/work/r1/a/_<REDACTED>/helm-charts/<REDACTED>
2018-12-14T16:40:57.6309603Z Release "<REDACTED>" does not exist. Installing it now.
2018-12-14T16:40:57.6311297Z Error: release <REDACTED> failed: timed out waiting for the condition
2018-12-14T16:40:57.6428880Z ##[error]Error: release <REDACTED> failed: timed out waiting for the condition
2018-12-14T16:40:57.6440575Z ##[section]Finishing: helm upgrade <REDACTED>
(注意,删除了敏感的项目名称)。
答案 0 :(得分:3)
由于您正在使用-wait 标志进行部署
(如果已设置),将等到所有Pod,PVC,服务和最小数量 标记部署的Pod处于就绪状态 发布成功。它将等待--timeout
如果有任何作业或挂接运行的时间超过300秒,则可以设置--timeout n
标志以及作业完成所需的秒数。
如果您的部署中没有任何作业在运行:
timeout
。