本頁說明如何在部署者專案中啟用二進位授權。
首先,請建立或選取專案。您可以在部署容器的Google Cloud 專案中啟用二進位授權。這個專案與您執行支援平台的專案相同,例如 Google Kubernetes Engine (GKE)、Cloud Run 或 Google Distributed Cloud。
如要啟用二進位授權,請按照下列步驟操作:
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Binary Authorization API.
-
Install the Google Cloud CLI.
-
如果您使用外部識別資訊提供者 (IdP),請先 使用聯合身分登入 gcloud CLI。
-
如要初始化 gcloud CLI,請執行下列指令:
gcloud init
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the Binary Authorization API.
-
Install the Google Cloud CLI.
-
如果您使用外部識別資訊提供者 (IdP),請先 使用聯合身分登入 gcloud CLI。
-
如要初始化 gcloud CLI,請執行下列指令:
gcloud init
二進位授權已啟用。您現在可以使用容器管理平台進行設定。