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.

80 lines
1.4 KiB

6 years ago
5 years ago
  1. apiVersion: networking.istio.io/v1alpha3
  2. kind: Gateway
  3. metadata:
  4. name: istio-ingressgateway
  5. #namespace: istio-system
  6. spec:
  7. selector:
  8. istio: ingressgateway # use Istio default gateway implementation
  9. servers:
  10. - port:
  11. number: 80
  12. name: http
  13. protocol: HTTP
  14. hosts:
  15. - "*"
  16. - port:
  17. number: 6379
  18. name: redis
  19. protocol: TCP
  20. hosts:
  21. - "*"
  22. - port:
  23. number: 27017
  24. name: mongo
  25. protocol: TCP
  26. hosts:
  27. - "*"
  28. - port:
  29. number: 5672
  30. name: rabbitmq
  31. protocol: TCP
  32. hosts:
  33. - "*"
  34. - port:
  35. number: 1433
  36. name: sql
  37. protocol: TCP
  38. hosts:
  39. - "*"
  40. ---
  41. apiVersion: networking.istio.io/v1alpha3
  42. kind: Gateway
  43. metadata:
  44. name: istio-egressgateway
  45. spec:
  46. selector:
  47. istio: egressgateway
  48. servers:
  49. - port:
  50. number: 80
  51. name: http
  52. protocol: HTTP
  53. hosts:
  54. - "*"
  55. - port:
  56. number: 6379
  57. name: redis
  58. protocol: TCP
  59. hosts:
  60. - "basket-data.default.svc.cluster.local"
  61. - "keystore-data.default.svc.cluster.local"
  62. - port:
  63. number: 27017
  64. name: mongo
  65. protocol: TCP
  66. hosts:
  67. - "nosql-data.default.svc.cluster.local"
  68. - port:
  69. number: 5672
  70. name: rabbitmq
  71. protocol: TCP
  72. hosts:
  73. - "rabbitmq.default.svc.cluster.local"
  74. - port:
  75. number: 1433
  76. name: sql
  77. protocol: TCP
  78. hosts:
  79. - "sql-data.default.svc.cluster.local"