- 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.
推薦閱讀
- 多媒體CAI課件設計與制作導論(第二版)
- UI圖標創意設計
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- Spring 5.0 By Example
- LabVIEW2018中文版 虛擬儀器程序設計自學手冊
- Internet of Things with the Arduino Yún
- HTML5+CSS3+JavaScript Web開發案例教程(在線實訓版)
- iOS應用逆向工程(第2版)
- Android開發案例教程與項目實戰(在線實驗+在線自測)
- Unity 2D Game Development Cookbook
- Learning R for Geospatial Analysis
- 從零開始學Android開發
- AutoCAD基礎教程
- Android技術內幕(系統卷)
- Learning D3.js 5 Mapping(Second Edition)