개요
- Kubernetes annotation, annotation
- 쿠버네티스 어노테이션, 어노테이션, 애노테이션
- 객체에 임의의 메타데이터를 붙이기 위한 키-값 쌍들(maps)
- 애노테이션 내의 메타데이터는 소량 또는 대량이거나, 구조화 또는 비구조화될 수 있으며, 레이블로는 허용되지 않는 문자(character)도 포함할 수 있다.
- 툴, 라이브러리 등의 클라이언트는 이 메타데이터를 조회할 수 있다.
- 서드파티 자동화 등에 활용된다.
"metadata": {
"annotations": {
"key1" : "value1",
"key2" : "value2"
}
}
apiVersion: v1
kind: Pod
metadata:
name: annotations-demo
annotations:
imageregistry: "https://hub.docker.com/"
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80