gateway_backend.yaml 534 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. apiVersion: networking.istio.io/v1alpha3
  3. kind: VirtualService
  4. metadata:
  5. name: grpc-example
  6. namespace: prd
  7. spec:
  8. hosts:
  9. - grpc-example
  10. http:
  11. - route:
  12. - destination:
  13. host: grpc-example
  14. subset: v1
  15. port:
  16. number: 50051
  17. ---
  18. apiVersion: networking.istio.io/v1alpha3
  19. kind: VirtualService
  20. metadata:
  21. name: http-backend
  22. namespace: prd
  23. spec:
  24. hosts:
  25. - http-backend
  26. http:
  27. - route:
  28. - destination:
  29. host: http-backend
  30. subset: v1
  31. port:
  32. number: 8080