启用 Binary Authorization 服务

本页面介绍如何在部署者项目中启用 Binary Authorization。

首先,您需要创建或选择一个项目。您可以在部署容器的 Google Cloud 项目中启用 Binary Authorization。该项目就是您在其中运行支持的平台(例如 Google Kubernetes Engine [GKE]、Cloud Run 或 Google Distributed Cloud)的项目。

如需启用 Binary Authorization,请按以下步骤操作:

  1. 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.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. Enable the Binary Authorization API.

    Enable the API

  5. Install the Google Cloud CLI.
  6. To initialize the gcloud CLI, run the following command:

    gcloud init
  7. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  8. Make sure that billing is enabled for your Google Cloud project.

  9. Enable the Binary Authorization API.

    Enable the API

  10. Install the Google Cloud CLI.
  11. To initialize the gcloud CLI, run the following command:

    gcloud init

已启用 Binary Authorization。您现在可以使用容器管理平台对其进行设置。

后续步骤