2.1.2 安装部署Helm

使用Helm安装和配置是将Istio安装到你的开发环境,这是推荐安装方式,因为它为Istio控制平面和数据平面Sidecar提供了丰富的配置。因此首先在Kubernetes中安装Helm。可以根据Helm的官方文档安装:https://github.com/helm/helm/blob/master/docs/install.md,具体来说,方法如下。

在Mac OS上安装:


# Use homebrew on Mac
brew install kubernetes-helm
# 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)
helm repo update

在Windows上安装:


# Use Chocolatey on Windows
# 注:安装的时候需要保证网络能够访问googleapis这个域名
choco install kubernetes-helm
# 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)
helm repo update