istio bookinfo

1.安装istio,如未安装k8s集群,可Refgotok8s安装单机版集群
image

2.设置default命名空间自动注入

1
kubectl label namespace default istio-injection=enabled

3.部署应用
1
kubectl apply -f bookinfo.yaml

4.查看servicepods是否启动
image

5.设置Istio Gateway
kubectl apply -f bookinfo-gateway

6.确认Ingress端口和IP
image

1
2
3
export INGRESS_HOST=10.101.124.143
export INGERSS_PORT=31176
export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT

7.在浏览器访问服务,
image

8.访问kiali,在浏览器中输入对应的IP端口
image
image


Ref:
1.https://istio.io/latest/zh/docs/examples/bookinfo/