1. 前期准备

1.1 下载安装包

wget https://storage.googleapis.com/kubernetes-helm/helm-v2.13.0-linux-amd64.tar.gz

1.2 解压安装包

tar zxvf helm-v2.12.3-linux-amd64.tar.gz

2. 安装

2.1 复制拷贝

复制helm和tiller到/usr/local/bin/目录下

cd linux-amd64/

mv helm tiller /usr/local/bin/

2.2 安装helm

2.2.1 初始化helm

helm init

2.2.2 检查helm

helm version

helm安装步骤

2.2.2.1 异常:could not find a ready tiller pod

查看详细信息

kubectl get pods -n kube-system

helm安装步骤

查看描述信息

kubectl describe pods -n kube-system

或者

kubectl describe pod tiller-deploy-9d4c59f5c-sjv5x -n kube-system

helm安装步骤

错误提示是:failed to pull image “gcr.io/kubernetes-helm/tiller:v2.13.0”。这是因为gcr.io被墙了,gcr.io下的tiller镜像没能下载到,通过到docker hub上面查找能够替代的tiller镜像。

https://hub.docker.com/search?q=kubernet-helm.tiller&type=image

helm安装步骤

也可以通过命令查找,但在查找后还是需要到docker hub上查看描述,看是否有修改。

docker search tiller:v2.13.0

在节点上pull 镜像

docker pull doublemine/kubernetes-helm.tiller:v2.13.0

打tag

docker tag doublemine/kubernetes-helm.tiller:v2.13.0 gcr.io/kubernetes-helm/tiller:v2.13.0

查看pod状态

kubectl get pods -n kube-system

helm安装步骤

查看helm

helm version

helm安装步骤

2.2.2.2 异常:socat not found.

需要在节点上安装socat

使用 yum install -y socat 会发现没有可供下载的镜像。

helm安装步骤

因此选用二进制包安装法。先下载对应的tar包:

http://www.dest-unreach.org/socat/download/?C=M;O=A

解压tar

tar -zvxf socat-1.7.3.2.tar.gz

进入目录

cd socat-1.7.3.2/

编译安装

./configure

make

su

make install

安装参考:

http://www.dest-unreach.org/socat/doc/README

当节点都安装完后,再检查helm,客户端服务端gitCommit一致

helm version

helm安装步骤

查看tiller的repo仓库

helm repo list

helm安装步骤

相关文章: