BOSH:在部署清单中手动设置 director_uuid

BOSH: Manually set director_uuid in deployment manifest

我正在执行教程 learn bosh and got a question concerning step Set Deployment Manifest

为什么我必须在部署清单中手动设置 director_uuid(然后我将其上传到同一个目录)?这是一项安全功能吗?

根据文档,director_uuid用于CLI操作target Director。

Deployment Identification

name [String, required]: The name of the deployment. A single Director can manage multiple deployments and distinguishes them by name.

director_uuid [String, required]: This string must match the UUID of the currently targeted Director for the CLI to allow any operations on the deployment. Use bosh status to display the UUID of the currently targeted Director.

参考:BOSH documentation

Cloud Foundry 可以像PaaS 一样提供Cloud Service。如果您将清单部署到错误的环境,这意味着您客户的环境可能会崩溃。 那个复杂的参数可以帮助您避免在您的操作环境中误操作。