본문 바로가기

OpenSource

Helm chart repository deprecation 관련 메모

Kubernetes 훌훌 훑으며 오다보니 Helm 까지 왔다.

우선 공식 가이드에 나온대로 설치.

$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
$ chmod 700 get_helm.sh
$ ./get_helm.sh

참고하는 책('쿠버네티스 마스터 2/e')에 다음 단계로 tiller 설치하기 위해 'helm init' 실행하라고 해서 따라했더니 'init' 이 'unknwon command' 란다.

아무 생각없이 따라한거다 보니 Helm 3버전 설치한거였고 버전 3부터는 tiller, init 등 deprecated 되었단다.

번거로운 tiller 빌드/설치 단계가 없어졌으니 곧장 간단한 명령으로 설치 상태 확인.

$ helm search kube

책에 나온대로 해보니 또 에러. 책 나온지 3년여 된 사이에 이래저래 많이 바뀐 모양.

에러 내용보니 검색 시 repo 나 hub 를 지정해줘야 한단다.

$ helm search repo mariadb

결과는 잘 나오는데 죄다 deprecated 되었다고 나온다.

검색.

 

Important Helm Repo Changes & v2 End of Support in November | Cloud Native Computing Foundation

Guest post from Dan Garfield, Chief Technology Evangelist, Codefresh and Scott Rigby, Developer Experience, Weaveworks On November 13th, 2020 the Stable and Incubator Helm chart repositories will be…

www.cncf.io

요는 구글 팀 지원 덕분에 그간 helm/chart github 저장소 잘 써왔는데 너무 인기 많아지면서 유지 비용을 더 이상 감당할 수 없게 되었다. 이때문에 이런 중앙 집중식 저장소 이용 방식 중단한다. 그간 helm 커뮤니티들이 호스팅하는 저장소들로 분산 이전해왔으니 앞으로는 그걸 이용해라.

권고 따르기 위해 위 두번째 문서에 소개된 chartcenter.ioartifacthub.io/등록해보기로 했다.

우선 chartcenter.io/docs 에 나온대로 다음과 같이 실행.

$ helm repo add center https://repo.chartcenter.io

유효한 패키지 검색은 되는데 ***-index.yaml: ... is invalid 이 쭉 표시되는게 거슬린다.

aritfacthub 에서는 repo 추가 안내 문서를 못 찾아서 곧장 mariadb 를 검색(artifacthub.io/packages/helm/bitnami/mariadb)해보니 다음과 같이 나온다.

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/mariadb

https://charts.bitnami.com/bitnami 를 이용하는가 본데 검색 속도도 빠르고 결과도 깔끔하게 나온다.

이것만 써도 되겠다 싶어 다른 repo 는 다음과 같이 제거.

$ helm repo remove stable
$ helm repo remove center

그럼 이제 Helm 공부 본격적으로 시작.