You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
1.9 KiB

6 years ago
5 years ago
  1. apiVersion: networking.istio.io/v1alpha3
  2. kind: VirtualService
  3. metadata:
  4. name: webmvcvs
  5. namespace: default
  6. spec:
  7. hosts:
  8. - "*"
  9. gateways:
  10. - istio-ingressgateway
  11. http:
  12. - match:
  13. - uri:
  14. prefix: /
  15. route:
  16. - destination:
  17. port:
  18. number: 80
  19. host: webmvc
  20. ---
  21. apiVersion: networking.istio.io/v1alpha3
  22. kind: VirtualService
  23. metadata:
  24. name: webshoppingapigwvs
  25. namespace: default
  26. spec:
  27. hosts:
  28. - "*"
  29. gateways:
  30. - istio-ingressgateway
  31. http:
  32. - match:
  33. - uri:
  34. prefix: /webshoppingapigw
  35. route:
  36. - destination:
  37. port:
  38. number: 80
  39. host: webshoppingapigw
  40. ---
  41. apiVersion: networking.istio.io/v1alpha3
  42. kind: VirtualService
  43. metadata:
  44. name: identityvs
  45. namespace: default
  46. spec:
  47. hosts:
  48. - "*"
  49. gateways:
  50. - istio-ingressgateway
  51. http:
  52. - match:
  53. - uri:
  54. prefix: /identity
  55. route:
  56. - destination:
  57. port:
  58. number: 80
  59. host: identity
  60. ---
  61. apiVersion: networking.istio.io/v1alpha3
  62. kind: DestinationRule
  63. metadata:
  64. name: basket-data-storage-dr
  65. spec:
  66. host: basket-data.default.svc.cluster.local
  67. trafficPolicy:
  68. tls:
  69. mode: ISTIO_MUTUAL
  70. ---
  71. apiVersion: networking.istio.io/v1alpha3
  72. kind: DestinationRule
  73. metadata:
  74. name: keystore-data-dr
  75. spec:
  76. host: keystore-data.default.svc.cluster.local
  77. trafficPolicy:
  78. tls:
  79. mode: ISTIO_MUTUAL
  80. ---
  81. apiVersion: networking.istio.io/v1alpha3
  82. kind: VirtualService
  83. metadata:
  84. name: basket-data-vs
  85. spec:
  86. hosts:
  87. - basket-data
  88. tcp:
  89. route:
  90. - destination:
  91. host: basket-data.default.svc.cluster.local
  92. port:
  93. number: 6379
  94. ---
  95. apiVersion: networking.istio.io/v1alpha3
  96. kind: VirtualService
  97. metadata:
  98. name: keystore-data-vs
  99. spec:
  100. hosts:
  101. - keystore-data
  102. tcp:
  103. route:
  104. - destination:
  105. host: keystore-data.default.svc.cluster.local
  106. port:
  107. number: 6379