使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
卸载 Config Sync
本页面介绍如何卸载 Config Sync。
请按照以下说明从集群中卸载 Config Sync。对于您不想再使用 Config Sync 管理的每个集群,您必须按照以下步骤操作。如果卸载 Config Sync,则您的代码库中的配置不会受到影响,系统也不会从您的集群中移除配置。
控制台
- 在 Google Cloud 控制台中:
- 在要停用 Config Sync 的集群旁边,点击 edit 修改。
- 点击下一步。
- 清除启用 Config Sync 复选框。
- 点击完成。
您将返回到 Anthos Config Management 页面。几分钟后,您应该会在从中卸载 Config Sync 的集群旁边的配置同步状态列中看到未安装。
gcloud
打开您的 apply-spec.yaml
文件,并将 spec.configSync.enabled
设置为 false
:
# apply-spec.yaml
applySpecVersion: 1
spec:
configSync:
enabled: false
...
将更改应用于 apply-spec.yaml
文件:
gcloud beta container fleet config-management apply \
--membership=MEMBERSHIP_NAME \
--config=CONFIG_YAML \
--project=PROJECT_ID
请替换以下内容:
- MEMBERSHIP_NAME:添加您要将此配置应用于的已注册集群。 如果您已在 Google Cloud Console 中注册该集群,则成员资格名称与集群名称相同。
- CONFIG_YAML:添加
apply-spec.yaml
文件的路径。
- PROJECT_ID:添加您的项目 ID。
后续步骤
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-01-17 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"很难理解"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"信息或示例代码不正确"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"没有我需要的信息/示例"
},{
"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":"其他"
}]