有没有办法拒绝特定前缀的流量,所以只允许内部流量?
来自here的例子
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: bookinfo
spec:
hosts:
- bookinfo.com
gateways:
- bookinfo-gateway
http:
- match:
- uri:
prefix: /v2 # <---- route all traffic to /v2*
route:
...
- match:
- uri:
prefix: /v2/internal # <---- but deny all traffic to /v2/internal*