- 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.
推薦閱讀
- OpenDaylight Cookbook
- Oracle Exadata性能優化
- C/C++算法從菜鳥到達人
- Mastering Articulate Storyline
- C語言從入門到精通(第4版)
- Windows Phone 7.5:Building Location-aware Applications
- Developing SSRS Reports for Dynamics AX
- 軟件測試綜合技術
- Android應用開發實戰
- QlikView Unlocked
- 交互式程序設計(第2版)
- Learning C++ by Creating Games with UE4
- 虛擬現實建模與編程(SketchUp+OSG開發技術)
- Expert Cube Development with SSAS Multidimensional Models
- BackTrack 5 Cookbook