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.

95 lines
1.6 KiB

5 years ago
  1. apiVersion: networking.istio.io/v1alpha3
  2. kind: ServiceEntry
  3. metadata:
  4. name: basket-data
  5. spec:
  6. hosts:
  7. - basket-data
  8. ports:
  9. - name: tcp
  10. number: 6379
  11. protocol: tcp
  12. location: MESH_EXTERNAL
  13. ---
  14. apiVersion: networking.istio.io/v1alpha3
  15. kind: ServiceEntry
  16. metadata:
  17. name: keystore-data
  18. spec:
  19. hosts:
  20. - keystore-data
  21. ports:
  22. - name: tcp
  23. number: 6379
  24. protocol: tcp
  25. location: MESH_EXTERNAL
  26. ---
  27. apiVersion: networking.istio.io/v1alpha3
  28. kind: ServiceEntry
  29. metadata:
  30. name: nosql-data
  31. spec:
  32. hosts:
  33. - nosql-data
  34. ports:
  35. - name: tcp
  36. number: 27017
  37. protocol: tcp
  38. location: MESH_EXTERNAL
  39. ---
  40. apiVersion: networking.istio.io/v1alpha3
  41. kind: ServiceEntry
  42. metadata:
  43. name: rabbitmq
  44. spec:
  45. hosts:
  46. - rabbitmq
  47. ports:
  48. - name: tcp
  49. number: 5672
  50. protocol: tcp
  51. location: MESH_EXTERNAL
  52. ---
  53. apiVersion: networking.istio.io/v1alpha3
  54. kind: ServiceEntry
  55. metadata:
  56. name: sql-data
  57. spec:
  58. hosts:
  59. - sql-data
  60. ports:
  61. - name: tcp
  62. number: 1433
  63. protocol: tcp
  64. location: MESH_EXTERNAL
  65. ---
  66. apiVersion: "networking.istio.io/v1alpha3"
  67. kind: "DestinationRule"
  68. metadata:
  69. name: external
  70. namespace: default
  71. spec:
  72. host: "*.eshop-infra.svc.cluster.local"
  73. trafficPolicy:
  74. tls:
  75. mode: DISABLE
  76. ---
  77. apiVersion: "networking.istio.io/v1alpha3"
  78. kind: "DestinationRule"
  79. metadata:
  80. name: externalsql2
  81. namespace: default
  82. spec:
  83. host: "sql-data"
  84. trafficPolicy:
  85. tls:
  86. mode: DISABLE
  87. ---
  88. apiVersion: "networking.istio.io/v1alpha3"
  89. kind: DestinationRule
  90. metadata:
  91. name: "disable-tls"
  92. spec:
  93. host: "*"
  94. trafficPolicy:
  95. tls:
  96. mode: DISABLE