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

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.
主站蜘蛛池模板: 金沙县| 华容县| 高邑县| 封开县| 伊金霍洛旗| 抚顺市| 澜沧| 双牌县| 松滋市| 中阳县| 海口市| 诸暨市| 裕民县| 仪征市| 邮箱| 大余县| 堆龙德庆县| 黄冈市| 和田县| 修武县| 云林县| 滨海县| 连江县| 化州市| 汕头市| 额敏县| 家居| 徐州市| 尉氏县| 夏津县| 沁阳市| 涡阳县| 亚东县| 商洛市| 石家庄市| 海淀区| 重庆市| 宁都县| 延寿县| 台中市| 天全县|