v2-er.jpg
Helm是Kubernetes上的包管理器,对标centos的yum
tiller是包仓库,对比centos的/etc/yum.repos.d/xxx.repo
主页:https://github.com/helm/helm/releases
概念:
- chart:chart是helm的应用打包格式。chart是描述相关的一组Kubernetes资源的文件集合。单个chart可能用于部署简单的东西,比如memcached pod,或者一些复杂的东西,比如完整的具有HTTP服务,数据库,缓存等的Web应用程序堆栈。
- release:表一个运行实例
- repository:用于发布和存储 Chart 的存储库

helm安装:

下载地址:https://storage.googleapis.com/kubernetes-helm/helm-v2.13.0-rc.2-linux-amd64.tar.gz

[root@node01 opt]# cd /opt/
[root@node01 opt]# tar zxvf helm-v2.13.0-rc.2-linux-amd64.tar.gz
linux-amd64/
linux-amd64/LICENSE
linux-amd64/README.md
linux-amd64/tiller
linux-amd64/helm
[root@node01 opt]# cd linux-amd64/
[root@node01 linux-amd64]# /bin/cp -arf helm /usr/local/bin/helm
[root@node01 linux-amd64]# which helm
/usr/local/bin/helm

helm init方式安装tiller

在kubernetes集群机器上操作,创建角色相关:

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

拉取自定义镜像:docker pull fishead/gcr.io.kubernetes-helm.tiller:v2.11.0
helm init --upgrade --tiller-image fishead/gcr.io.kubernetes-helm.tiller:v2.11.0
安装成功:

[root@node01 ~]# kubectl get pod -n kube-system|grep tiller
tiller-deploy-66cdf6dfc8-rwqd7          1/1     Running   0          19m
[root@node01 ~]# helm repo list
NAME    URL
stable  https://kubernetes-charts.storage.googleapis.com
local   http://127.0.0.1:8879/charts

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code