本頁面說明設定 Cloud Deploy 的步驟。如要瞭解 Cloud Deploy 的費用,請參閱定價。
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Cloud Deploy API.
您可能需要啟用其他 API 才能使用 Cloud Deploy 功能,包括 Google Kubernetes Engine、Cloud Storage 和 Cloud Build API。如要啟用這些 API,請前往Google Cloud 控制台的 API 程式庫,然後搜尋這些 API。Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin
), which contains theserviceusage.services.enable
permission. Learn how to grant roles. -
安裝 Google Cloud CLI。 安裝完成後,執行下列指令初始化 Google Cloud CLI:
gcloud init
如果您使用外部識別資訊提供者 (IdP),請先 使用聯合身分登入 gcloud CLI。
如果您已安裝 gcloud CLI,請確認您擁有最新版本:
gcloud components update