annotation (2) 썸네일형 리스트형 [Kubernetes]What is Annotation in Kubernetes? label과 마찬가지로 key-value 쌍으로 구성하며 label처럼 사용자가 설정할 수 있다. label → 사용자가 설정한 특정 label의 오브젝트들을 선택 annotation → 쿠버네티스 시스템이 필요한 정보들을 담았으며, 쿠버네티스 클라이언트나 라이브러리가 자원을 관리하는 데 활용. e.g. 릴리즈 정보, 로깅, 모니터링에 필요한 정보등 Example - Annotation annotation 설정 apiVersion: apps/v1 kind: Deployment metadata: name: annotation labels: app: nginx annotations: manager: "admin-name" # 관리자 정보 contact: "010-0000-0000" # 관리자 번호 relea.. [Kubernetes]What are Label and Annotation in Kubernetes Concept Kubernetes 자원들의 메타데이터를 관리하는 데 사용 Label selector와 함께 특정 label이 있는 자원들을 선택할 때 주로 사용. 클러스터 안에서 사용자가 오브젝트를 생성할 때 해당 오브젝트를 구분하는 용도. 사용자가 임의로 원하는 값을 지정해서 사용 Annotation 주석 성격의 메타데이터를 기록하는 데 사용 사용자가 원하는 값을 설정하기보다 쿠버네티스 시스템에서 필요한 정보들을 표시하는 데 사용. 이전 1 다음