Deployment Manager更新错误:预览中的部署不得具有带有UPDATE的目标 [英] Deployment Manager update error: Deployment in preview must not have a target with UPDATE
本文介绍了Deployment Manager更新错误:预览中的部署不得具有带有UPDATE的目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每次尝试通过Deployment Manager对预览中的现有部署运行更新时,都会收到错误消息:
Every time I try to run an update through deployment manager to an existing deployment in preview, I get the error:
$ gcloud deployment-manager deployments update abc --config abc.yaml
ERROR: (gcloud.deployment-manager.deployments.update) ResponseError: code=400, message=Invalid value for field 'resource.target': ''. Deployment in preview must not have a target with UPDATE
但是,如果我不使用gcloud命令行上的更新并转到控制台,然后单击部署",则更新会顺利进行.
However, if I don't use the update on the gcloud command line and go to the console and click 'deploy' the update goes through fine.
是什么原因造成的?
推荐答案
刚遇到这个问题,我没有正确遵循说明.在预览中创建内容后,您无需再通过配置即可,只需应用即可.
Just ran into this, I wasn't following the instructions properly. After you created something in preview you do NOT pass the config again you just apply.
创建预览
gcloud deployment-manager deployments update my-deployment --config my-config.yaml --preview
运行部署
gcloud deployment-manager deployments update my-deployment
这篇关于Deployment Manager更新错误:预览中的部署不得具有带有UPDATE的目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文