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

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.
主站蜘蛛池模板: 呼图壁县| 宁晋县| 咸丰县| 海伦市| 株洲市| 涟源市| 潮安县| 黄冈市| 竹山县| 平昌县| 岳池县| 思南县| 长寿区| 修武县| 双城市| 泽库县| 临湘市| 木兰县| 老河口市| 高安市| 钦州市| 方山县| 双峰县| 油尖旺区| 垫江县| 灵寿县| 松滋市| 彭山县| 唐海县| 尉氏县| 昂仁县| 门源| 肇东市| 万盛区| 双柏县| 石屏县| 灵山县| 定日县| 昭觉县| 盈江县| 宜良县|