- DevOps with Kubernetes
- Hideto Saito Hui Chuan Chloe Lee Cheng Yang Wu
- 116字
- 2021-07-02 13:41:54
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.
推薦閱讀
- Learning Neo4j
- Facebook Application Development with Graph API Cookbook
- Java 9 Concurrency Cookbook(Second Edition)
- The Modern C++ Challenge
- 基于Java技術的Web應用開發
- INSTANT CakePHP Starter
- Mastering Scientific Computing with R
- Android Native Development Kit Cookbook
- 用戶體驗增長:數字化·智能化·綠色化
- 快人一步:系統性能提高之道
- Learning Apache Cassandra
- FFmpeg開發實戰:從零基礎到短視頻上線
- C語言程序設計實驗指導與習題精解
- 軟技能2:軟件開發者職業生涯指南
- LabVIEW數據采集(第2版)