标签:sys $path wget repo 变量 str tps version root
#下载已编译好的二进制包 wget https://get.helm.sh/helm-v2.14.2-linux-arm64.tar.gz #解压 tar -zxf helm-v2.14.2-linux-arm64.tar.gz #设置PATH环境变量 cd linux-amd64 export PATH=$PATH:$(pwd)
配置k8s rbac
cat <<EOF > /tmp/helm-sa.yaml apiVersion: v1 kind: ServiceAccount metadata: labels: k8s-app: helm name: tiller namespace: kube-system
kubectl create -f /tmp/helm-sa.yaml
EOF
cat <<EOF > /tmp/helm-crb.yaml
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: helm-crb roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: tiller namespace: kube-system
EOF
kubectl create -f /tmp/helm-sa.yaml
kubectl create -f /tmp/helm-crb.yaml
helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.9.0 --service-account=tiller --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
[root@node2 linux-amd64]# kubectl get pod | grep tiller tiller-deploy-6dd798686b-h9c9l 1/1 Running 0 25m
标签:sys $path wget repo 变量 str tps version root
原文地址:https://www.cnblogs.com/orchidzjl/p/11237950.html