2

「Kubernetes」- 注解(Annotation)

 2 years ago
source link: https://blog.k4nz.com/5ee6f441974d03cf6ab556ebb267673a/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

「Kubernetes」- 注解(Annotation)

 2022-04-05   CREATED BY JENKINSBOT

Annotating a Resource with One Command

Annotation(注解)的内容通常是通用的,非识别性的键值,而且可以是人类不可读的数据。

kubectl annotate pods foobar description=’something’

一般注解用于增加k8s的自动化。

例如,当使用kubectl run创建部署时,没有使用–record参数,那么历史记录里的change-cause一列为空。从1.6.0开始,可以使用kubectl annotate deployment foobar kubernetes.io/change-cause=’Reason foo’


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK