gitlab package registry 서비스를 helm chart repository로 사용하는 방법

  1. 새폴더를 생성하고 폴더 내부에 작성해두었던 chart 폴더를 복사하기
mkdir wrtn_django_helm_chart
cp -R $chart_dir ./wrtn_django_helm_chart

Untitled

  1. packaging 하기
cd wrtn_django_helm_chart
helm package wrtn-django

Untitled

  1. helm repo add 명령어로 gitlab package registry 등록하기
helm repo add --username "SeHyeong LEE" --password "glpat-oPbaEgrVoYdd_8XDQsg4" wrtn_django <https://gitlab.com/api/v4/projects/54318826/packages/helm/stable>

password에는 Personal Access Token을 넣어준다.

project id(54318826)는 settings - general에서 확인할 수 있다.

Untitled

  1. helm repo push로 헬름 이미지 업로드 하기
helm cm-push wrtn-django-0.1.0.tgz wrtn_django

Untitled

Untitled