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

ArgoCD로 설치

원문 보기 위키 갱신

ArgoCD로 설치 (Install with ArgoCD)

Argo CD를 사용해 Longhorn을 설치하는 절차를 안내해요. Argo CD 설치와 CLI 로그인부터 Longhorn Application 리소스 생성, 동기화, 설치 확인, UI 접속까지 순서대로 살펴봐요.

출처: 문서

본문

사전 조건 (Prerequisites)

  • 작업 워크스테이션: Argo CD CLI를 설치하세요.

  • Kubernetes 클러스터:

  • 각 노드가 설치 요구 사항을 충족하는지 확인하세요.

  • Argo CD를 설치하세요.

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/core-install.yaml

argocd 네임스페이스에 Argo CD 컴포넌트가 배포되기까지 시간을 조금 주세요.

Longhorn Command Line Tool을 사용해 Longhorn 환경의 잠재적 문제를 확인하세요.

Longhorn 설치하기 (Installing Longhorn)

  • Argo CD에 로그인해요.
argocd login --core
  • 현재 네임스페이스를 argocd로 설정해요.
kubectl config set-context --current --namespace=argocd
  • Longhorn Application 커스텀 리소스를 만들어요.
cat > longhorn-application.yaml
- Deploy Longhorn with the configured settings.

argocd app sync longhorn
  • Longhorn이 성공적으로 설치됐는지 확인해요.
kubectl -n longhorn-system get pod

Example of a successful Longhorn installation:

NAME                                                READY   STATUS    RESTARTS   AGE
longhorn-ui-b7c844b49-w25g5                         1/1     Running   0          2m41s
longhorn-manager-pzgsp                              1/1     Running   0          2m41s
longhorn-driver-deployer-6bd59c9f76-lqczw           1/1     Running   0          2m41s
longhorn-csi-plugin-mbwqz                           2/2     Running   0          100s
csi-snapshotter-588457fcdf-22bqp                    1/1     Running   0          100s
csi-snapshotter-588457fcdf-2wd6g                    1/1     Running   0          100s
csi-provisioner-869bdc4b79-mzrwf                    1/1     Running   0          101s
csi-provisioner-869bdc4b79-klgfm                    1/1     Running   0          101s
csi-resizer-6d8cf5f99f-fd2ck                        1/1     Running   0          101s
csi-provisioner-869bdc4b79-j46rx                    1/1     Running   0          101s
csi-snapshotter-588457fcdf-bvjdt                    1/1     Running   0          100s
csi-resizer-6d8cf5f99f-68cw7                        1/1     Running   0          101s
csi-attacher-7bf4b7f996-df8v6                       1/1     Running   0          101s
csi-attacher-7bf4b7f996-g9cwc                       1/1     Running   0          101s
csi-attacher-7bf4b7f996-8l9sw                       1/1     Running   0          101s
csi-resizer-6d8cf5f99f-smdjw                        1/1     Running   0          101s
instance-manager-b34d5db1fe1e2d52bcfb308be3166cfc   1/1     Running   0          114s
engine-image-ei-df38d2e5-cv6nc                      1/1     Running   0          114s
  • Longhorn UI에 접근하려면 기본 인증(basic authentication)이 있는 NGINX Ingress 컨트롤러를 만들어요. Longhorn UI에 대한 인증은 기본적으로 꺼져 있어요.

  • Longhorn UI에 접속해요.

더 알아보기 (Learn more)