启用 Backup for GKE API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Autopilot
Standard
本页面介绍了如何启用 Backup for GKE。
准备工作
在开始之前,请确保您已执行以下任务:
- 启用 Google Kubernetes Engine API。
启用 Google Kubernetes Engine API
- 如果您要使用 Google Cloud CLI 执行此任务,请安装并初始化 gcloud CLI。 如果您之前安装了 gcloud CLI,请运行
gcloud components update
以获取最新版本。
启用 Backup for GKE API
启用了 GKE API 的任何项目中都会自动启用 Backup for GKE 服务。如果您手动停用了 Backup for GKE 服务,则可以使用 Google Cloud CLI、Google Cloud 控制台或 Terraform 启用 Backup for GKE 服务。
gcloud
如需启用 Backup for GKE 服务,请运行以下命令:
gcloud services enable gkebackup.googleapis.com
控制台
在 Google Cloud 控制台中,启用 Backup for GKE API:
启用 API
创建相应的 "google_project_service"
资源以启用 gkebackup.googleapis.com
服务:
resource "google_project_service" "my_service" {
project = "my_project"
service = "gkebackup.googleapis.com"
}
如需了解详情,请参阅 google_project_service。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-02-29。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]