LOADING...

加载过慢请开启缓存(浏览器默认开启)

loading

Istio 安装

Istio 需要 Kubernetes 环境,参考 Kubernetes 安装

下载 istioctl,到该目录下执行:

./bin/istioctl install --set profile=minimal -y

安装过程可能会出现:

Istiod encountered an error: failed to wait for resource: resources not ready after 5m0s: timed out waiting for the condition.

网络上都说是内存小的原因,其实很大程度不是,我使用 2013 年(10 年前)的商务本(低压 CPU 和机械硬盘),启动官网的 bookinfo 用时近 20 分钟,但是完全没有任何错误提示。出现这个因该检查什么资源没有分配到,而不是慢。Istio 是需要调度节点的,Kubernetes 默认主节点不调度,非多节点平台的测试这点得注意,先检查节点状况:

kubectl describe nodes | grep Taint

如果出现 :NoSchedule 的输出就说明不支持,需要改为 -,如:

kubectl taint node k8s node-role.kubernetes.io/control-plane-
kubectl taint node k8s node-role.kubernetes.io/master-