본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

프로파일(Profile)

원문 보기 위키 갱신

Profile은 여러 엔드포인트를 묶어 공통 라벨 집합을 상속하게 해주는 리소스예요. 역사적인 이유로 프로파일은 정책 규칙도 포함할 수 있지만, 그 기능은 훨씬 유연한 NetworkPolicy와 GlobalNetworkPolicy로 대체되어 지원 중단(deprecated)됐습니다. 이 문서에서는 Profile 리소스의 구조와 정의를 소개해요.

출처: 문서

본문

프로파일(Profile)은 여러 엔드포인트를 묶어 공통 라벨 집합을 상속하게 해주는 방법이에요. 역사적인 이유로 프로파일은 정책 규칙도 포함할 수 있지만, 그 기능은 훨씬 유연한 NetworkPolicy와 GlobalNetworkPolicy 리소스로 대체되어 지원 중단됐습니다.

각 Calico 엔드포인트 또는 호스트 엔드포인트는 0개 이상의 프로파일에 할당될 수 있어요.

샘플 YAML

다음 샘플 프로파일은 자신의 프로파일 목록에 dev-apps를 포함하는 모든 엔드포인트에 stage: development 라벨을 적용해요.

apiVersion: projectcalico.org/v3
kind: Profile
metadata:
  name: dev-apps
spec:
  labelsToApply:
    stage: development

정의

메타데이터

Field Description Accepted Values Schema Default
name The name of the profile. Required. Alphanumeric string with optional ., _, or -. string
labels A set of labels for this profile. map of string key to string values

스펙

Field Description Accepted Values Schema Default
ingress (deprecated) The ingress rules belonging to this profile. List of Rule
egress (deprecated) The egress rules belonging to this profile. List of Rule
labelsToApply An optional set of labels to apply to each endpoint in this profile (in addition to the endpoint's own labels) map

Rule의 세부 내용은 NetworkPolicy 또는 GlobalNetworkPolicy 리소스를 참고하세요.

더 알아보기 (Learn more)

프로파일은 라벨 적용 용도로만 쓰고, 정책은 NetworkPolicy/GlobalNetworkPolicy로 관리하는 것이 현행 방식이에요. labelsToApply를 활용하면 라벨을 일괄 부여할 수 있습니다.