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

apply -f bookinfo-gateway```
1
2
3
4
5
6
7
8

6.确认`Ingress`端口和`IP`
![image](http://img.hysyeah.top/2020/6/13/20200613174652-gateway.png)

```python
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/