"K8s 애너테이션"의 두 판 사이의 차이

 
(사용자 2명의 중간 판 19개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
; Kubernetes annotation; annotation
; Kubernetes annotation, annotation
; 쿠버네티스 애노테이션; 애노테이션
; 쿠버네티스 어노테이션, 어노테이션, 애노테이션
* 객체에 임의의 메타데이터를 붙이기 위한 키-값
* 객체에 임의의 메타데이터를 붙이기 위한 키-값 쌍들(maps)
* 애노테이션 내의 메타데이터는 소량 또는 대량이거나, 구조화 또는 비구조화될 수 있으며, 레이블로는 허용되지 않는 문자(character)도 포함할 수 있음
* 애노테이션 내의 메타데이터는 소량 또는 대량이거나, 구조화 또는 비구조화될 수 있으며, [[k8s 레이블|레이블]]로는 허용되지 않는 문자(character)도 포함할 수 있다.
* 툴, 라이브러리 등의 클라이언트는 이 메타데이터를 조회할 수 있음
* 툴, 라이브러리 등의 클라이언트는 이 메타데이터를 조회할 수 있다.
* 서드파티 자동화 등에 활용된다.


<source lang='json'>
<syntaxhighlight lang='json'>
"metadata": {
"metadata": {
   "annotations": {
   "annotations": {
13번째 줄: 14번째 줄:
   }
   }
}
}
</source>
</syntaxhighlight>
<syntaxhighlight lang='yaml'>
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
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[쿠버네티스 레이블]]
{{z컬럼3|
* [[Kubernetes 용어]]
* [[k8s 용어]]
* [[애노테이션]]
* [[k8s 레이블]]
* [[어노테이션]]
* [[k8s Ingress 어노테이션]]
* [[k8s 잘 알려진 어노테이션]]
* [[k8s 레이블 vs 어노테이션]]
* [[kubectl annotate]]
* [[kubectl 어노테이션 붙였다 떼기]]
* [[Kustomize commonAnnotations]]
}}


==참고==
==참고==
* https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
* https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/


[[분류: Kubernetes]]
[[분류:K8s Annotation]]

2025년 9월 14일 (일) 23:03 기준 최신판

1 개요[ | ]

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

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}