本頁說明如何在部署者專案中啟用二進位授權。
首先,請建立或選取專案。您可以在部署容器的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.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Binary Authorization API.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Binary Authorization API.
-
Install the Google Cloud CLI.
-
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
-
To initialize the gcloud CLI, run the following command:
gcloud init
二進位授權已啟用。您現在可以使用容器管理平台進行設定。