Skip to content

Commit 2f8c722

Browse files
authored
Merge pull request #31 from zlzforever/master
修改 helm 源和解决 helm client 与 server 不匹配的问题
2 parents a7cb830 + 4adc792 commit 2f8c722

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

Diff for: README.md

+35-2
Original file line numberDiff line numberDiff line change
@@ -201,28 +201,61 @@ kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/mas
201201
202202
#### 在 Mac OS 上安装
203203
204+
##### 通过 brew 安装
205+
206+
brew 安装的版本可能会和 helm server 不兼容, 如果在后续使用 helm 安装组件的过程中出现以下错误,可以 `通过二进制包安装` 对应的版本
207+
208+
```
209+
$ helm install install/kubernetes/helm/istio-init --name istio-init --namespace istio-system
210+
Error: incompatible versions client[v2.13.1] server[v2.12.2]
211+
```
212+
204213
```shell
205214
# Use homebrew on Mac
206215
brew install kubernetes-helm
207216
217+
# Change helm repo
218+
helm repo add stable http://mirror.azure.cn/kubernetes/charts-incubator/
219+
208220
# Install Tiller into your Kubernetes cluster
209221
helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.12.2 --skip-refresh
210222
211-
# update charts repo (Optional)
223+
# Update charts repo (Optional)
212224
helm repo update
213225
```
214226
227+
##### 通过二进制包安装
228+
229+
```
230+
# Download binary release
231+
在 https://github.com/helm/helm/releases 中找到匹配的版本并下载(需要梯子), 如: https://storage.googleapis.com/kubernetes-helm/helm-v2.12.2-darwin-amd64.tar.gz
232+
233+
# Unpack
234+
235+
tar -zxvf helm-v2.0.0-linux-amd64.tgz
236+
237+
# Move it to its desired destination
238+
239+
mv darwin-amd64/helm /usr/local/bin/helm
240+
241+
```
242+
215243
#### 在Windows上安装
216244
245+
如果在后续使用 helm 安装组件的过程中出现版本兼容问题,可以参考 `通过二进制包安装` 思路安装匹配的版本
246+
217247
```shell
218248
# Use Chocolatey on Windows
219249
# 注:安装的时候需要保证网络能够访问googleapis这个域名
220250
choco install kubernetes-helm
221251
252+
# Change helm repo
253+
helm repo add stable http://mirror.azure.cn/kubernetes/charts-incubator/
254+
222255
# Install Tiller into your Kubernetes cluster
223256
helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.12.2 --skip-refresh
224257
225-
# update charts repo (Optional)
258+
# Update charts repo (Optional)
226259
helm repo update
227260
```
228261

0 commit comments

Comments
 (0)