Config Sync 管理的标签和注释
Config Sync 会为集群中的对象添加和管理多个标签和注释。请勿修改这些值。
标签
标签 |
说明 |
app.kubernetes.io/managed-by: configmanagement.gke.io |
将对象标记为目前由 Config Sync 管理。 |
configsync.gke.io/declared-version: API_VERSION |
此标签表示最初在其中声明资源的 API 版本。 |
注释
注释 |
说明 |
configmanagement.gke.io/cluster-name: CLUSTER_NAME |
由 ClusterSelector 使用的集群名称。 |
configmanagement.gke.io/declared-config: JSON_OUTPUT |
用于在 Git 中声明对象的 JSON 表示法。 |
configmanagement.gke.io/managed: enabled |
指示该 Config Sync 进行对象管理。 |
configmanagement.gke.io/source-path: PATH |
声明此对象的文件在代码库中的路径。 |
configmanagement.gke.io/token: TOKEN_HASH |
上次修改此对象时代码库的 Git 哈希。 |
configsync.gke.io/declared-fields: DECLARED_FIELDS |
将所声明的资源配置存储在 Git 中。此注解使用与服务器端代管字段所应用的相同格式。 |
configsync.gke.io/manager: MANAGER |
指明哪个协调器管理当前对象。其值为 :root 或 NAMESPACE 。 |
configsync.gke.io/resource-id: RESOURCE_ID |
表示资源的组、种类、命名空间和名称的相关信息。 |
configsync.gke.io/git-context: GIT_CONTEXT |
存储从中同步资源的 Git 可信来源。包括代码库、分支和修订版本的相关信息。 |
config.k8s.io/owning-inventory: INVENTORY |
表示拥有此资源的资源组对象。 |
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 2022-03-28 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":"其他"
}]