반응형
Notice
Recent Posts
Recent Comments

04-29 15:59
관리 메뉴

SaevOps

[CD] Helm Github ArgoCD 연동하기 -1 본문

클라우드/CI CD

[CD] Helm Github ArgoCD 연동하기 -1

세브웁스 2023. 3. 24. 11:06
반응형
Github / Helm 연동

 

1.Helm 설치 / 환경변수 등록

- https://github.com/helm/helm/releases 접속 후 다운로드

- Helm 설치 경로 : C드라이브

 :

 

 

2. Visual Studio Code 설치 & GitAMD 설치(과정 설명 생략)

 

3. 깃허브 회원가입(과정생략) / Repogitory 생성

 

 4. 새로운 레포지토리 생성 후 setting에서 Page 활성화

- 페이지 접속시 확인 가능

- 예시 페이지) https://saehyen.github.io/Helm_chart/index.yaml

 

 

 

5. 차트 생성 및 연동

$ helm create demo

- demo 폴더가 생기고 안에 파일이 생기는 것을 확인

 

 

6. 페이지 정상 확인 후 헬름 레포지토리에 추가

$ helm repo add <repo name> <repo_url>
예시) helm repo add Helm_chart https://saehyen.github.io/Helm_chart

 

 

7. 개발환경으로 이동 후 적용 ( Kubectl 사용 가능한곳)

 
# helm 차트 공식 gitgub에서 가져올 때 쓰는 명령어
$ helm repo add stable https://charts.helm.sh/stable
 
# 레포지토리 업데이트 (레포지토리 최신화)
$ helm repo update
 
# stable 폴더에 있는 레포지토리 검색
$ helm search repo stable
 
# nginx라는 폴더에 demo(nginx) 생성
$ helm create nginx
 
# nginx2 라는 이름으로 설치
$ helm install nginx2 ./
 
# nginx의 주소 보기
$ k get svc

# 설치했던 nginx2 서비스 삭제
$ helm uninstall nginx2

헬름 차트 관련 명령어 정리

# 헬름 차트 저장소 추가
helm repo add <repo name> <repo URL>

# 헬름 차트 저장소를 최신 상태로 업데이트
helm repo update
# 등록된 헬름 차트 저장소에서 특정 키워드가 포함된 헬름 차트를 검색
helm search repo <keyword>

# 헬름 차트를 쿠버네티스에 배포
helm install <name> <chart> -n <namespace>

# 헬름 차트를 최신/특정 버전으로 업그레이드
helm upgrade <release> -n <namespace>

# 배포된 헬름 차트를 삭제
helm uninstall <name> -n <namespace>

# 배포된 헬름 차트 목록을 확인
helm list -n <namspace>

# 헬름 차트 생성 
helm create <name>
반응형

'클라우드 > CI CD' 카테고리의 다른 글

[CD] Helm Github ArgoCD 연동하기 -2  (3) 2023.03.25
Comments