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

Flux 선택적 컴포넌트

원문 보기 위키 갱신

Flux 선택적 컴포넌트 (Flux optional components)

flux bootstrap 명령은 Kubernetes 컨트롤러들과 함께 그 CRD, RBAC, 네트워크 정책을 flux-system 네임스페이스에 배포해요. 이 문서는 기본 컴포넌트와 추가 컴포넌트를 어떻게 설치하는지, 그리고 네트워크 정책·클러스터 도메인 설정까지 설명합니다.

출처: 문서

본문

flux bootstrap 명령은 일련의 Kubernetes 컨트롤러를 그 CRD, RBAC, 네트워크 정책과 함께 flux-system 네임스페이스에 배포합니다.

기본 컴포넌트 (Default components)

기본 컴포넌트는 --components 플래그로 지정해요.

flux bootstrap git \
  --components source-controller,kustomize-controller,helm-controller,notification-controller

bootstrap에 필요한 최소 컴포넌트는 source-controller와 kustomize-controller예요.

--components 플래그를 지정하지 않으면 flux bootstrap과 flux install 모두 기본 컴포넌트를 배포합니다.

추가 컴포넌트 (Extra components)

Flux 이미지 자동화 기능을 활성화하려면 --components-extra 플래그로 추가 컴포넌트를 지정할 수 있어요.

flux bootstrap git \
  --components-extra image-reflector-controller,image-automation-controller

Flux 소스 구성(composition)과 분해(decomposition) 기능을 활성화하려면 source-watcher 컴포넌트를 추가 컴포넌트에 넣을 수 있습니다.

flux bootstrap git \
  --components-extra source-watcher

기본적으로 flux bootstrap과 flux install 명령은 어떤 추가 컴포넌트도 포함하지 않아요.

네트워크 정책 (Network policies)

Flux는 source-controller에 보관된 소스 아티팩트에 직접 접근할 수 있는 컴포넌트가 Flux 컴포넌트뿐임을 보장하기 위해 Kubernetes 네트워크 정책에 의존합니다.

기본 네트워크 정책은 notification-controller 웹훅 리시버를 제외하고 flux-system 네임스페이스로의 모든 인그레스 접근을 차단해요.

권장하지는 않지만, --network-policy 플래그를 사용하면 네트워크 정책 없이도 Flux 컴포넌트를 배포할 수 있습니다.

flux bootstrap git \
  --network-policy false

클러스터 도메인 (Cluster domain)

Flux 컴포넌트는 HTTP로 source-controller와 notification-controller와 통신합니다. 각 컴포넌트가 수행하는 DNS 질의를 줄이기 위해, 클러스터 내부 도메인 이름으로 각 서비스의 FQDN을 구성해요. 예: http://source-controller.flux-system.svc.cluster.local./.

클러스터 도메인 이름은 --cluster-domain 플래그로 설정할 수 있습니다.

flux bootstrap git \
  --cluster-domain cluster.internal

지정하지 않으면 클러스터 도메인은 기본값 cluster.local로 설정돼요.

더 알아보기 (Learn more)