官术网_书友最值得收藏!

Annotation

Annotation is a set of user-specified key-value pairs, used for specifying non-identifying metadata. With annotation acts such as normal tagging, for example, a user could add timestamps, commit hashes, or build numbers to an annotation. Some kubectl commands support the --record option to record commands that make changes to the objects. Another use case of annotation is storing the configuration, such as Kubernetes deployments (https://kubernetes.io/docs/concepts/workloads/controllers/deployment) or critical add-on pods (https://coreos.com/kubernetes/docs/latest/deploy-addons.html). The syntax of annotations is as follows:

annotations:
$key1: $value1
$key2: $value2
Namespace, name, label, and annotation are located in the metadata section of the object spec. Selector is located in the spec section of selector-supported resources, such as pod, service, ReplicaSet, and deployment.
主站蜘蛛池模板: 项城市| 凌云县| 定兴县| 桂平市| 郯城县| 宝坻区| 元朗区| 华容县| 太仓市| 延庆县| 册亨县| 广德县| 卓尼县| 二手房| 嵊州市| 潮安县| 施甸县| 延长县| 托克逊县| 五河县| 浏阳市| 徐闻县| 金堂县| 安西县| 衡南县| 乐山市| 乐亭县| 农安县| 固始县| 南平市| 临江市| 五寨县| 军事| 民勤县| 西林县| 即墨市| 汉寿县| 绥中县| 弋阳县| 太康县| 平山县|