Minikube安装istio
准备
注意: istioctl的安装要使用安装里的, 不要是用homebrew里的. github issue
curl -L https://istio.io/downloadIstio | sh -
cd istio-1.4.2
cp bin/istioctl /usr/local/bin/istioctl
安装前检查
istioctl verify-install
如果检查没问题, 会看到Install Pre-Check passed! The cluster is ready for Istio installation.
安装
istio有5种内建的安装配置1: remote, sds, default, demo, minimal
istioctl profile list
- minimal: 使用istio的流量管理所需组件的最小化安装
- default: 根据IstioControlPlane API的默认设置(建议用于生产部署)启用组件. 您可以通过运行命令istioctl profile dump显示默认设置.
- demo: 几乎安装所有的特性, 包括logging和tracing的比例为100%. 不适合生产环境, 负载太重
default | demo | minimal | sds | remote | |
---|---|---|---|---|---|
Core components | |||||
istio-citadel |
X | X | X | X | |
istio-egressgateway |
X | ||||
istio-galley |
X | X | X | ||
istio-ingressgateway |
X | X | X | ||
istio-nodeagent |
X | ||||
istio-pilot |
X | X | X | X | |
istio-policy |
X | X | X | ||
istio-sidecar-injector |
X | X | X | X | |
istio-telemetry |
X | X | X | ||
Addons | |||||
grafana |
X | ||||
istio-tracing |
X | ||||
kiali |
X | ||||
prometheus |
X | X | X |
demo
profile安装
istioctl manifest apply --set profile=demo
验证安装结果
istioctl manifest generate --set profile=demo > /tmp/generated-manifest.yaml
istioctl verify-install -f /tmp/generated-manifest.yaml
…… Checked 23 crds Checked 9 Istio Deployments Istio is installed successfully
卸载
helm template install/kubernetes/helm/istio --namespace istio-system \
--values install/kubernetes/helm/istio/values-istio-demo.yaml | kubectl delete -f -
kubectl delete namespace istio-system
#delete all CRDs
kubectl delete -f install/kubernetes/helm/istio-init/files