[root@master01 virtualservice]# kubectl get vs bookinfo -o yaml -n istio
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"networking.istio.io/v1beta1","kind":"VirtualService","metadata":{"annotations":{},"name":"bookinfo","namespace":"istio"},"spec":{"exportTo":["*"],"gateways":["bookinfo-gateway"],"hosts":["*"],"http":[{"delegate":{"name":"productpage","namespace":"istio"},"match":[{"uri":{"exact":"/productpage"}},{"uri":{"prefix":"/static"}},{"uri":{"exact":"/login"}},{"uri":{"exact":"/logout"}},{"uri":{"prefix":"/api/v1/products"}}]}]}}
creationTimestamp: "2020-07-02T04:50:17Z"
generation: 15
name: bookinfo
namespace: istio
resourceVersion: "2685002"
selfLink: /apis/networking.istio.io/v1beta1/namespaces/istio/virtualservices/bookinfo
uid: 1c02e129-66c0-4f5e-bc14-a0c1bca400c6
spec:
exportTo:
- '*'
gateways:
- bookinfo-gateway
hosts:
- '*'
http:
- delegate:
name: productpage
namespace: istio
match:
- uri:
exact: /productpage
- uri:
prefix: /static
- uri:
exact: /login
- uri:
exact: /logout
- uri:
prefix: /api/v1/products
[root@master01 virtualservice]# kubectl get vs -n istio
NAME GATEWAYS HOSTS AGE
bookinfo [bookinfo-gateway] [*] 2d1h
details [details] 23h
productpage [productpage] 23h
ratings [ratings] 23h
reviews [reviews] 23h
no healthy upstreams
[root@master01 virtualservice]# istioctl version --remote
client version: 1.6.1
control plane version: 1.6.1
data plane version: 1.6.1 (14 proxies)