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

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.
主站蜘蛛池模板: 东宁县| 本溪| 湖口县| 平度市| 信宜市| 北票市| 濮阳市| 犍为县| 石狮市| 沿河| 丘北县| 莱州市| 沁阳市| 旅游| 林西县| 江达县| 沙雅县| 石柱| 泗阳县| 旺苍县| 克山县| 隆化县| 民乐县| 宁城县| 温州市| 峨眉山市| 唐海县| 突泉县| 靖宇县| 上虞市| 红桥区| 垣曲县| 民乐县| 灵武市| 阳原县| 长沙县| 彭州市| 永丰县| 依安县| 敖汉旗| 星子县|