Istio #
有关 Istio 的更多信息,请访问 Istio 快速入门。
设置集群 #
kwokctl create cluster --runtime kind
创建节点 #
kubectl apply -f https://kwok.kubernetes.ac.cn/examples/node.yaml
部署 Istio #
istioctl install -y
将控制器迁移到真实节点 #
kubectl patch deploy istiod -n istio-system --type=json -p='[{"op":"add","path":"/spec/template/spec/nodeName","value":"kwok-kwok-control-plane"}]'
kubectl patch deploy istio-ingressgateway -n istio-system --type=json -p='[{"op":"add","path":"/spec/template/spec/nodeName","value":"kwok-kwok-control-plane"}]'
创建 Pod 并注入 Sidecar #
kubectl label namespace default istio-injection=enabled
kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml