本页面介绍如何在部署者项目中启用 Binary Authorization。
首先,您需要创建或选择一个项目。您可以在部署容器的 Google Cloud 项目中启用 Binary Authorization。该项目就是您在其中运行支持的平台(例如 Google Kubernetes Engine (GKE)、Cloud Run 或 Anthos clusters on VMware)的项目。
如需启用 Binary Authorization,请按以下步骤操作:
- 登录您的 Google Cloud 帐号。如果您是 Google Cloud 新手,请创建一个帐号来评估我们的产品在实际场景中的表现。新客户还可获享 $300 赠金,用于运行、测试和部署工作负载。
-
在 Google Cloud Console 中的项目选择器页面上,选择或创建一个 Google Cloud 项目。
-
确保您的 Cloud 项目已启用结算功能。了解如何检查项目是否已启用结算功能。
-
启用 Artifact Registry, Container Analysis, and Binary Authorization API。
- 安装 Google Cloud CLI。
-
如需初始化 gcloud CLI,请运行以下命令:
gcloud init
-
在 Google Cloud Console 中的项目选择器页面上,选择或创建一个 Google Cloud 项目。
-
确保您的 Cloud 项目已启用结算功能。了解如何检查项目是否已启用结算功能。
-
启用 Artifact Registry, Container Analysis, and Binary Authorization API。
- 安装 Google Cloud CLI。
-
如需初始化 gcloud CLI,请运行以下命令:
gcloud init
已启用 Binary Authorization。您现在可以使用容器管理平台对其进行设置。
后续步骤
- 为 Google Kubernetes Engine (GKE) 设置 Binary Authorization
- 为 Cloud Run 设置 Binary Authorization
- 为 Anthos clusters on VMware 设置 Binary Authorization