apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: official-website-web
spec:
hosts:
- official-website-web
http:
- route:
- destination:
host: official-website-web
subset: v1
---
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: official-website-web
spec:
host: official-website-web
subsets:
- labels:
app: official-website-web
version: v1
name: v1
- labels:
app: official-website-web
version: v2
name: v2
environment:
isito config:
In istio environment, apisix does not take effect after apisix proxy backend svc and VirtualService specify the policy. When accessing the corresponding service through apisix external network address, the default polling policy is still implemented, and v1 and v2 will be accessed, but in apisix pod VirtualService can take effect when you use curl to access the corresponding service, then only the v1 version will be accessed