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.

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