为 GKE 设置
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面简要介绍了如何在您的环境中设置 Binary Authorization 强制执行以与 Google Kubernetes Engine (GKE) 搭配使用。您可以使用 Google Cloud 控制台或 Google Cloud CLI 设置 Binary Authorization。您还可以使用 Binary Authorization REST API 执行一些设置步骤。
如需查看包含以下设置步骤的端到端教程,请参阅 Google Cloud CLI 使用入门或 Google Cloud 控制台使用入门。
如需设置 Binary Authorization,请执行以下步骤:
启用 Binary Authorization。
创建集群并启用 Binary Authorization,或在现有集群上启用 Binary Authorization。
配置 Binary Authorization 政策。
您可以在政策中配置以下功能:
可选:如果您的不同 Google Cloud 项目具有政策或 Container Registry 制品库,请授予跨项目访问所需的 IAM 角色。如需查看相关说明,请参阅在 GKE 中为 Binary Authorization 配置跨项目访问。
可选:使用 built-by-cloud-build
证明者仅部署由 Cloud Build 构建的映像。
可选:使用证明。
部署容器映像。
在 Cloud Audit Logs 中查看事件。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-31。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-01-31。"],[],[]]