1. curl 명령어로 get_helm.sh 받아옴

curl https://raw.githubusercontent.com/helm/helm/master/scripts/get > get_helm.sh

2. chmod로 execute 할 수 있는 권한 주기 및 실행

chmod 700 get_helm.sh
./get_helm.sh

3. service account인 tiller 생성

kubectl -n kube-system create sa tiller

4. tiller로 초기화? 흠..

helm init --service-account tiller --upgrade

 

ps. 권한문제 발생시, 다음형식의 yaml파일 생성 (ex: tiller-clusterrolebinding.yaml)

vi tiller-clusterrolebinding.yaml

작성

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
  name: tiller-clusterrolebinding
subjects:
- kind: ServiceAccount
  name: tiller
  namespace: kube-system
roleRef:
  kind: ClusterRole
  name: cluster-admin
  apiGroup: ""

 

kubectl create -f tiller-clusterrolebinding.yaml
helm init --service-account tiller --upgrade

이러면 성공할꺼임..

+ Recent posts