Helm 설치하기

brillog·2023년 8월 19일
0

Helm을 설치해 보겠습니다.

# Linux 기준
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh
chmod 700 get_helm.sh
./get_helm.sh

위 과정 진행 후에도 helm이 제대로 설치되지 않았다면 환경변수 path 확인(echo $PATH) 후 /usr/local/bin 아래 설치된 helm을 환경변수 path인 /usr/bin으로 옮겨줍니다.

$ echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin
$ ls /usr/local/bin
helm  kubectl
$ mv /usr/local/bin/helm /usr/bin
$ helm version
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
version.BuildInfo{Version:"v3.12.3", GitCommit:"3a31588ad33fe3b89af5a2a54ee1d25bfe6eaa5e", GitTreeState:"clean", GoVersion:"go1.20.7"}

'WARNING' 문구가 뜨는 이유는 ~/.kube/config의 파일 권한이 'group'과 'others'에 'read'를 허용하고 있기 때문입니다. 이는 'read' 권한을 제거하면 해결됩니다.

$ ls -al ~/.kube/
-rw-r--r-- 1 root root 2362 Aug 18 13:54 config
...
$ chmod g-r ~/.kube/config
$ chmod o-r ~/.kube/config
$ helm version
version.BuildInfo{Version:"v3.12.3", GitCommit:"3a31588ad33fe3b89af5a2a54ee1d25bfe6eaa5e", GitTreeState:"clean", GoVersion:"go1.20.7"}

Reference

개인적으로 공부하며 작성한 글로, 내용에 오류가 있을 수 있습니다.

profile
클라우드 엔지니어 ♡

0개의 댓글