首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >TKE搭建helm搭建

TKE搭建helm搭建

原创
作者头像
马凌鑫
修改2019-05-06 16:24:44
2.7K0
修改2019-05-06 16:24:44
举报
文章被收录于专栏:云知识学习云知识学习

2019年5月6日更新:

现在TKE已有helm配套,一键安装:https://cloud.tencent.com/document/product/457/32730

helm官方搭建文档:https://helm.sh/docs/using_helm/#installing-helm

手动搭建教程

1.下载helm

下载二进制文件,但是这个二进制文件国内下载不了,发挥你的能力去下载吧

#下载网址
https://github.com/helm/helm/releases
#helm下载链接
https://storage.googleapis.com/kubernetes-helm/helm-v2.11.0-linux-amd64.tar.gz

2. 解压并移动二进制helm到/usr/local/bin/ 下

$ tar -xvf helm-v2.11.0-linux-amd64.tar.gz
$ cd linux-amd64/
$ mv helm /usr/local/bin/

3.验证helm

$ helm version
Client: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}
Error: cannot connect to Tiller

这时还没安装tiller所以会报error

4.安装tiller

$ helm init --service-account tiller -i hub.tencentyun.com/helm/tiller:v2.11.0 

到这一步发现tiller根本装不上,查看event发现是缺少了serviceaccount,查了下google创建一个就行了

5.创建对应的server account

$ kubectl create serviceaccount --namespace kube-system tiller
$ kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
$ kubectl edit deploy --namespace kube-system tiller-deploy #and add the line serviceAccount: tiller to spec/template/spec

#https://github.com/helm/helm/issues/2224

到此就安装完毕了,tiller是以pod形态存在的。

[root@VM_0_17_centos ~]# kubectl get pod --all-namespaces
NAMESPACE     NAME                                    READY     STATUS    RESTARTS   AGE
kube-system   ccs-log-collector-7bgn4                 1/1       Running   0          1d
kube-system   ip-masq-agent-xzmvb                     1/1       Running   0          1d
kube-system   kube-dns-7f687bdf4-2pmh6                3/3       Running   0          1d
kube-system   kube-dns-7f687bdf4-k5hln                3/3       Running   0          1d
kube-system   kubernetes-dashboard-78c46b977d-tckf5   1/1       Running   0          18h
kube-system   l7-lb-controller-584c496c85-swdst       1/1       Running   0          1d
kube-system   tiller-deploy-69545986bb-6kttk          1/1       Running   0          55m

到此搭建完毕,详细的使用教程网上很多,这里不重复。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1.下载helm
  • 2. 解压并移动二进制helm到/usr/local/bin/ 下
  • 3.验证helm
  • 4.安装tiller
  • 5.创建对应的server account
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档