@@ -201,28 +201,61 @@ kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/mas
201
201
202
202
#### 在 Mac OS 上安装
203
203
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
+
204
213
```shell
205
214
# Use homebrew on Mac
206
215
brew install kubernetes-helm
207
216
217
+ # Change helm repo
218
+ helm repo add stable http://mirror.azure.cn/kubernetes/charts-incubator/
219
+
208
220
# Install Tiller into your Kubernetes cluster
209
221
helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2 .12 .2 --skip-refresh
210
222
211
- # update charts repo (Optional)
223
+ # Update charts repo (Optional)
212
224
helm repo update
213
225
```
214
226
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
+
215
243
#### 在Windows上安装
216
244
245
+ 如果在后续使用 helm 安装组件的过程中出现版本兼容问题,可以参考 `通过二进制包安装` 思路安装匹配的版本
246
+
217
247
```shell
218
248
# Use Chocolatey on Windows
219
249
# 注:安装的时候需要保证网络能够访问googleapis这个域名
220
250
choco install kubernetes-helm
221
251
252
+ # Change helm repo
253
+ helm repo add stable http://mirror.azure.cn/kubernetes/charts-incubator/
254
+
222
255
# Install Tiller into your Kubernetes cluster
223
256
helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2 .12 .2 --skip-refresh
224
257
225
- # update charts repo (Optional)
258
+ # Update charts repo (Optional)
226
259
helm repo update
227
260
```
228
261
0 commit comments