k8s 搭建kubesphere前置条件, get_helm.sh 配置文件创建失败, 选择二进制安装helm tiller:v2.16.3
k8s 搭建kubesphere前置条件, get_helm.sh 配置文件创建失败, 选择二进制安装helm tiller:v2.16.31. 设置访问GitHub的hosts配置Windows 与 linux 最好都设置一遍#设置访问GitHub140.82.112.3 github.com185.199.111.153 assets-cdn.github.com199.232.69.194g
·
k8s 搭建kubesphere前置条件, get_helm.sh 配置文件创建失败, 选择二进制安装helm tiller:v2.16.3
1. 设置访问GitHub的hosts配置
Windows 与 linux 最好都设置一遍
#设置访问GitHub
140.82.112.3 github.com
185.199.111.153 assets-cdn.github.com
199.232.69.194 github.global.ssl.fastly.net
13.226.10.125 onregularinvesting.com
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
2. 刷新配置文件,或重启
/etc/init.d/network restart
3. 下载 二进制文件(仅适用v2.16.3)
https://github.com/helm/helm/releases/tag/v2.16.3
4. 上传至linux
5. 执行命令( [ ] 包裹的可能是无意义的命令):
1. tar -zxvf helm-v2.16.3-linux-amd64.tar.gz
2. mv linux-amd64/helm /usr/local/bin/helm
3. mv linux-amd64/tiller /usr/local/bin/tiller
4. chmod a+x /usr/local/bin/helm
5. vi helm-rabc.yaml
-------yaml-------
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: tiller
namespace: kube-system
-------yaml-------
6. kubectl apply -f helm-rabc.yaml
7. helm init --service-account=tiller --tiller-image=registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.16.3 --history-max 300
8. helm init --service-account tiller --skip-refresh
9. [ tiller=registry.cn-shanghai.aliyuncs.com/leozhanggg/helm/tiller:v2.16.3 ]
10. [ helm init --service-account=tiller --tiller-image=gcr.io/kubernetes-helm/tiller:v2.16.3 --history-max 300 ]
11. helm init --service-account tiller --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.16.3 --skip-refresh
12. helm init --service-account tiller --skip-refresh
6. 等待5分钟
tiller : 查看运行状态
helm version : 查看状态
kubectl get pods --all-namespaces : 查看状态
更多推荐
已为社区贡献1条内容
所有评论(0)