Kubernetes v1.16.2
Helm v2.14.3
HelmClient 的安装
HelmClient 的安装,有两种方式:二进制安装、脚本安装
curl -# -O https://get.helm.sh/helm-v2.14.1-linux-amd64.tar.gz
tar -zxvf helm-v2.14.3-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/
TillerServer 安装
helm init --upgrade --tiller-image registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.14.3 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
$HELM_HOME has been configured at /root/.helm.
Error: error installing: the server could not find the requested resou
一直出现初始化失败
解决办法
helm init --output yaml | sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | sed 's@ replicas: 1@ replicas: 1\n selector: {"matchLabels": {"app": "helm", "name": "tiller"}}@' | kubectl apply -f -
默认是谷歌镜像,如下载不了
请修改阿里云镜像
kubectl edit deployments.apps tiller-deploy -n kube-system