测试失败 ,我的步骤是
1、在KubeSphere 创建无状态的nignx服务
2、利用上面图片的yaml文件创建app应用
kubectl apply -f nginx-app.yaml
3、给nginx的 deploy 打labes标签;
kubectl label deploy/nginx-v1 app.kubernetes.io/name=nginx-app app.kubernetes.io/version=v1
kubectl label svc/nginx app.kubernetes.io/name=nginx-app app.kubernetes.io/version=v1
4、在deploy和service打上相应的annotation;
kubectl annotate deploy/nginx-v1 servicemesh.kubesphere.io/enabled=“true”
kubectl annotate svc/nginx servicemesh.kubesphere.io/enabled=“true”
5、在deploy templates中增加相应annotation,启用sidecar;
kubectl annotate deploy/nginx-v1 sidecar.istio.io/inject=“true”
kubectl annotate svc/nginx sidecar.istio.io/inject=“true”