- 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.
推薦閱讀
- 新編Visual Basic程序設(shè)計(jì)上機(jī)實(shí)驗(yàn)教程
- C#高級(jí)編程(第10版) C# 6 & .NET Core 1.0 (.NET開發(fā)經(jīng)典名著)
- Visual Basic .NET程序設(shè)計(jì)(第3版)
- Spring 5企業(yè)級(jí)開發(fā)實(shí)戰(zhàn)
- Python從小白到大牛
- C語言程序設(shè)計(jì)
- Oracle BAM 11gR1 Handbook
- Learning ELK Stack
- 零基礎(chǔ)學(xué)Python網(wǎng)絡(luò)爬蟲案例實(shí)戰(zhàn)全流程詳解(入門與提高篇)
- Python Essentials
- Hands-On Kubernetes on Windows
- OpenCV 3 Blueprints
- Arduino Wearable Projects
- Java程序設(shè)計(jì)基礎(chǔ)(第6版)
- Robot Framework Test Automation