Helm是什么?

Helm可以管理Kubernetes应用程序-Helm Charts帮助您定义,安装和升级最复杂的Kubernetes应用程序。

下载Helm 在https://github.com/helm/helm/releases

最新发布版本是这个,使用wget下载

wget https://get.helm.sh/helm-v2.16.0-linux-amd64.tar.gz

下的太慢了,我就直接用本机下载过来Xftp传上去了。

然后执行:

tar -zxvf helm-v2.16.0-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/helm

基于角色的访问控制(RABC) :rabc-tiller.yml

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

运行:

kubectl apply -f rabc-tiller.yml

查看helm版本信息:

helm version

Client: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}
Error: could not find tiller

安装helm,  tiller使用阿里云源(Server/Client版本要一致):

helm init --service-account tiller --tiller-image registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.16.0 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
Creating /root/.helm
Creating /root/.helm/repository
Creating /root/.helm/repository/cache
Creating /root/.helm/repository/local
Creating /root/.helm/plugins
Creating /root/.helm/starters
Creating /root/.helm/cache/archive
Creating /root/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /root/.helm. Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster. Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
To prevent this, run `helm init` with the --tiller-tls-verify flag.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation

再查看版本信息:

helm version

Client: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}

就安装成功了

如果出现错误可使用以下命令:

helm reset :  重置
rm -rf /root/.helm : 删除helm配置
kubernetes删除helm和tiller相关配置:
kubectl delete deployment tiller-deploy -n kube-system
kubectl delete service tiller-deploy -n kube-system 如果pod删除不掉,可强制删除: kubectl delete pod <pod name> --namespace=<pod namespace> --grace-period=0 --force

  

 

最新文章

  1. 黄聪:如何为IIS增加svg和woff等字体格式的MIME
  2. 日暮&middot;第二章&middot;烽烟传讯
  3. git的使用(二)
  4. Java 8新特性之集合
  5. 转 ——eclipse下进行Python开发 环境配置
  6. jsp include指令标签
  7. NopCommerce用core重写ef
  8. BBS论坛(二十一)
  9. 【洛谷P3960】列队题解
  10. C#对摄像头的操作示例,采用Aforge库
  11. centos 秘钥登陆配置
  12. JS数据类型及函数的预编译
  13. 一招破解 Java 集合类面试题
  14. The android command is deprecated
  15. ditto复制增强
  16. 【校招面试 之 网络】第2题 TCP的可靠传输、流量控制、滑动窗口
  17. Chapter 3 Phenomenon——23
  18. [leetcode] 7. Binary Tree Level Order Traversal II
  19. IE的if条件判断
  20. Linux正确的关机方式

热门文章

  1. centos 宝塔面版 运行 thinkjs
  2. golang 基于channel封装资源池(可用于封装redis、mq连接池)
  3. Eclipse安装Properties Editor插件
  4. Python Tkinter 之Listbox控件
  5. [转] Win10插入U盘后双击无法打开,无法访问,显示设备未就绪;驱动哥帮你解决
  6. 通过元类创建一个Python类
  7. AR*客户地点分配OU
  8. Apache Kafka Connect - 2019完整指南
  9. Rediskey生命周期管理-key聚合
  10. (转)项目迁移_.NET项目迁移到.NET Core操作指南