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.

142 lines
4.1 KiB

  1. admin:
  2. access_log_path: "/dev/null"
  3. address:
  4. socket_address:
  5. address: 0.0.0.0
  6. port_value: 8001
  7. static_resources:
  8. listeners:
  9. - address:
  10. socket_address:
  11. address: 0.0.0.0
  12. port_value: 80
  13. filter_chains:
  14. - filters:
  15. - name: envoy.http_connection_manager
  16. config:
  17. codec_type: auto
  18. stat_prefix: ingress_http
  19. route_config:
  20. name: eshop_backend_route
  21. virtual_hosts:
  22. - name: eshop_backend
  23. domains:
  24. - "*"
  25. routes:
  26. - name: "c-short"
  27. match:
  28. prefix: "/c/"
  29. route:
  30. auto_host_rewrite: true
  31. prefix_rewrite: "/catalog-api/"
  32. cluster: catalog
  33. - name: "c-long"
  34. match:
  35. prefix: "/catalog-api/"
  36. route:
  37. auto_host_rewrite: true
  38. cluster: catalog
  39. - name: "o-short"
  40. match:
  41. prefix: "/o/"
  42. route:
  43. auto_host_rewrite: true
  44. prefix_rewrite: "/ordering-api/"
  45. cluster: ordering
  46. - name: "o-long"
  47. match:
  48. prefix: "/ordering-api/"
  49. route:
  50. auto_host_rewrite: true
  51. cluster: ordering
  52. - name: "h-long"
  53. match:
  54. prefix: "/hub/notificationhub"
  55. route:
  56. auto_host_rewrite: true
  57. cluster: signalr-hub
  58. timeout: 300s
  59. upgrade_configs:
  60. upgrade_type: "websocket"
  61. enabled: true
  62. - name: "b-short"
  63. match:
  64. prefix: "/b/"
  65. route:
  66. auto_host_rewrite: true
  67. prefix_rewrite: "/basket-api/"
  68. cluster: basket
  69. - name: "b-long"
  70. match:
  71. prefix: "/basket-api/"
  72. route:
  73. auto_host_rewrite: true
  74. cluster: basket
  75. - name: "agg"
  76. match:
  77. prefix: "/"
  78. route:
  79. auto_host_rewrite: true
  80. prefix_rewrite: "/"
  81. cluster: shoppingagg
  82. http_filters:
  83. - name: envoy.router
  84. access_log:
  85. - name: envoy.file_access_log
  86. filter:
  87. not_health_check_filter: {}
  88. config:
  89. json_format:
  90. time: "%START_TIME%"
  91. protocol: "%PROTOCOL%"
  92. duration: "%DURATION%"
  93. request_method: "%REQ(:METHOD)%"
  94. request_host: "%REQ(HOST)%"
  95. path: "%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
  96. response_flags: "%RESPONSE_FLAGS%"
  97. route_name: "%ROUTE_NAME%"
  98. upstream_host: "%UPSTREAM_HOST%"
  99. upstream_cluster: "%UPSTREAM_CLUSTER%"
  100. upstream_local_address: "%UPSTREAM_LOCAL_ADDRESS%"
  101. path: "/tmp/access.log"
  102. clusters:
  103. - name: shoppingagg
  104. connect_timeout: 0.25s
  105. type: strict_dns
  106. lb_policy: round_robin
  107. hosts:
  108. - socket_address:
  109. address: webshoppingagg
  110. port_value: 80
  111. - name: catalog
  112. connect_timeout: 0.25s
  113. type: strict_dns
  114. lb_policy: round_robin
  115. hosts:
  116. - socket_address:
  117. address: catalog-api
  118. port_value: 80
  119. - name: basket
  120. connect_timeout: 0.25s
  121. type: strict_dns
  122. lb_policy: round_robin
  123. hosts:
  124. - socket_address:
  125. address: basket-api
  126. port_value: 80
  127. - name: ordering
  128. connect_timeout: 0.25s
  129. type: strict_dns
  130. lb_policy: round_robin
  131. hosts:
  132. - socket_address:
  133. address: ordering-api
  134. port_value: 80
  135. - name: signalr-hub
  136. connect_timeout: 0.25s
  137. type: strict_dns
  138. lb_policy: round_robin
  139. hosts:
  140. - socket_address:
  141. address: ordering-signalrhub
  142. port_value: 80