From 2857cf51536dc51bbf054ad41e3e548b6c1e923b Mon Sep 17 00:00:00 2001 From: Lewis Zou Date: Mon, 15 Apr 2019 09:38:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9=20helm=20=E5=9B=BD?= =?UTF-8?q?=E5=86=85=E5=8F=AF=E7=94=A8=E7=9A=84=E6=BA=90=202.=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20helm=20=E7=9A=84=E4=BA=8C=E8=BF=9B=E5=88=B6?= =?UTF-8?q?=E5=8C=85=E5=AE=89=E8=A3=85=E6=96=B9=E6=B3=95=E7=94=A8=E4=BA=8E?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=20helm=20client=20=E5=92=8C=20helm=20server?= =?UTF-8?q?=20=E4=B8=8D=E5=85=BC=E5=AE=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9310b57..56bb8f5 100644 --- a/README.md +++ b/README.md @@ -199,30 +199,65 @@ kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/mas 可以根据文档安装 helm https://github.com/helm/helm/blob/master/docs/install.md +#### 替换 helm 源 + #### 在 Mac OS 上安装 +##### 通过 brew 安装 + +brew 安装的版本可能会和 helm server 不兼容, 如果在后续使用 helm 安装组件的过程中出现以下错误,可以 `通过二进制包安装` 对应的版本 + +``` +$ helm install install/kubernetes/helm/istio-init --name istio-init --namespace istio-system +Error: incompatible versions client[v2.13.1] server[v2.12.2] +``` + ```shell # Use homebrew on Mac brew install kubernetes-helm +# Change helm repo +helm repo add stable http://mirror.azure.cn/kubernetes/charts-incubator/ + # Install Tiller into your Kubernetes cluster helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.12.2 --skip-refresh -# update charts repo (Optional) +# Update charts repo (Optional) helm repo update ``` +##### 通过二进制包安装 + +``` +# Download binary release +在 https://github.com/helm/helm/releases 中找到匹配的版本并下载(需要梯子), 如: https://storage.googleapis.com/kubernetes-helm/helm-v2.12.2-darwin-amd64.tar.gz + +# Unpack + +tar -zxvf helm-v2.0.0-linux-amd64.tgz + +# Move it to its desired destination + +mv darwin-amd64/helm /usr/local/bin/helm + +``` + #### 在Windows上安装 +如果在后续使用 helm 安装组件的过程中出现版本兼容问题,可以参考 `通过二进制包安装` 思路安装匹配的版本 + ```shell # Use Chocolatey on Windows # 注:安装的时候需要保证网络能够访问googleapis这个域名 choco install kubernetes-helm +# Change helm repo +helm repo add stable http://mirror.azure.cn/kubernetes/charts-incubator/ + # Install Tiller into your Kubernetes cluster helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.12.2 --skip-refresh -# update charts repo (Optional) +# Update charts repo (Optional) helm repo update ``` From 4adc7929aadac0e523c71de9208423217082bf27 Mon Sep 17 00:00:00 2001 From: Lewis Zou Date: Mon, 15 Apr 2019 09:43:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 56bb8f5..cc92760 100644 --- a/README.md +++ b/README.md @@ -199,8 +199,6 @@ kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/mas 可以根据文档安装 helm https://github.com/helm/helm/blob/master/docs/install.md -#### 替换 helm 源 - #### 在 Mac OS 上安装 ##### 通过 brew 安装