이 페이지는 Helm을 설치하는 방법에 대해 설명합니다. 자세한 내용은 Installing Helm을 참고하세요.

Helm CLI 다운로드

  1. Helm release 문서에서 Helm CLI를 다운로드합니다.

  2. 압축을 해제합니다.

     tar -zxvf helm-vX.X.X-OS_NAME-amd64.tgz
     mv OS_NAME-amd64/helm /usr/local/bin/helm
    

Tiller 설치

Helm의 서버 부분 인 Tiller는 일반적으로 Kubernetes 클러스터 내부에서 실행됩니다. 그러나 개발을 위해 로컬로 실행될 수도 있고 원격 Kubernetes 클러스터와 통신하도록 구성 될 수도 있습니다.

  1. Tiller를 위한 service account를 생성하고 cluster-admin 역할을 할당합니다.

     kubectl create serviceaccount tiller --namespace kube-system
     kubectl create clusterrolebinding tiller-admin-binding --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
    
  2. Tiller를 클러스터에 설치하는 가장 쉬운 방법은 helm init를 실행하는 것입니다. helm init 실행 후 Tiller가 running 상태가 될 때까지 대기합니다. 이 때, 위의 1번에서 생성한 tiller service account를 인자값을 전달해야합니다.

     $ helm init --service-account=tiller
     $ kubectl get pods --namespace kube-system |grep tiller
     tiller-deploy-7ccf99cd64-pd7c2        1/1       Running   0          3m
    
  3. 다음으로 Helm client와 server의 버전을 확인합니다. Server의 버전이 Client의 버전과 같거나 높아야 합니다.

     $ helm version
     Client: &version.Version{SemVer:"v2.x.x", GitCommit:"xxx", GitTreeState:"clean"}
     Server: &version.Version{SemVer:"v2.x.x", GitCommit:"xxx", GitTreeState:"clean"}
    
  4. Tiller 설치가 완료되었으면 업데이트를 실행합니다.

     helm update
    
  5. Server를 제외한 Client만 설치하고 싶은 경우 아래와 같이 실행합니다.

     $ helm init --client-only
    

이제 Helm을 활용해 chart를 Kubernetes에 배포할 수 있습니다.