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.

139 lines
4.0 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. - name: "b-short"
  60. match:
  61. prefix: "/b/"
  62. route:
  63. auto_host_rewrite: true
  64. prefix_rewrite: "/basket-api/"
  65. cluster: basket
  66. - name: "b-long"
  67. match:
  68. prefix: "/basket-api/"
  69. route:
  70. auto_host_rewrite: true
  71. cluster: basket
  72. - name: "agg"
  73. match:
  74. prefix: "/"
  75. route:
  76. auto_host_rewrite: true
  77. prefix_rewrite: "/"
  78. cluster: shoppingagg
  79. http_filters:
  80. - name: envoy.router
  81. access_log:
  82. - name: envoy.file_access_log
  83. filter:
  84. not_health_check_filter: {}
  85. config:
  86. json_format:
  87. time: "%START_TIME%"
  88. protocol: "%PROTOCOL%"
  89. duration: "%DURATION%"
  90. request_method: "%REQ(:METHOD)%"
  91. request_host: "%REQ(HOST)%"
  92. path: "%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
  93. response_flags: "%RESPONSE_FLAGS%"
  94. route_name: "%ROUTE_NAME%"
  95. upstream_host: "%UPSTREAM_HOST%"
  96. upstream_cluster: "%UPSTREAM_CLUSTER%"
  97. upstream_local_address: "%UPSTREAM_LOCAL_ADDRESS%"
  98. path: "/tmp/access.log"
  99. clusters:
  100. - name: shoppingagg
  101. connect_timeout: 0.25s
  102. type: strict_dns
  103. lb_policy: round_robin
  104. hosts:
  105. - socket_address:
  106. address: webshoppingagg
  107. port_value: 80
  108. - name: catalog
  109. connect_timeout: 0.25s
  110. type: strict_dns
  111. lb_policy: round_robin
  112. hosts:
  113. - socket_address:
  114. address: catalog-api
  115. port_value: 80
  116. - name: basket
  117. connect_timeout: 0.25s
  118. type: strict_dns
  119. lb_policy: round_robin
  120. hosts:
  121. - socket_address:
  122. address: basket-api
  123. port_value: 80
  124. - name: ordering
  125. connect_timeout: 0.25s
  126. type: strict_dns
  127. lb_policy: round_robin
  128. hosts:
  129. - socket_address:
  130. address: ordering-api
  131. port_value: 80
  132. - name: signalr-hub
  133. connect_timeout: 0.25s
  134. type: strict_dns
  135. lb_policy: round_robin
  136. hosts:
  137. - socket_address:
  138. address: ordering-signalrhub
  139. port_value: 80