Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. #service-envoy.yaml
  2. static_resources:
  3. listeners:
  4. - address:
  5. socket_address:
  6. address: 0.0.0.0
  7. port_value: 80
  8. filter_chains:
  9. - filters:
  10. - name: envoy.http_connection_manager
  11. config:
  12. codec_type: auto
  13. stat_prefix: ingress_http
  14. route_config:
  15. name: local_route
  16. virtual_hosts:
  17. - name: service
  18. domains:
  19. - "*"
  20. routes:
  21. - match:
  22. prefix: "/service"
  23. route:
  24. cluster: local_service
  25. http_filters:
  26. - name: envoy.router
  27. config: {}
  28. clusters:
  29. - name: local_service
  30. connect_timeout: 0.25s
  31. type: strict_dns
  32. lb_policy: round_robin
  33. hosts:
  34. - socket_address:
  35. address: 127.0.0.1
  36. port_value: 8080
  37. admin:
  38. access_log_path: "/dev/null"
  39. address:
  40. socket_address:
  41. address: 0.0.0.0
  42. port_value: 8081
  43.  
  44. #front-envoy.yaml
  45. static_resources:
  46. listeners:
  47. - address:
  48. socket_address:
  49. address: 0.0.0.0
  50. port_value: 80
  51. filter_chains:
  52. - filters:
  53. - name: envoy.http_connection_manager
  54. config:
  55. codec_type: auto
  56. stat_prefix: ingress_http
  57. route_config:
  58. name: local_route
  59. virtual_hosts:
  60. - name: backend
  61. domains:
  62. - "*"
  63. routes:
  64. - match:
  65. prefix: "/service"
  66. route:
  67. cluster: testservice
  68. http_filters:
  69. - name: envoy.router
  70. config: {}
  71. clusters:
  72. - name: testservice
  73. connect_timeout: 0.25s
  74. type: logical_dns
  75. lb_policy: round_robin
  76. http2_protocol_options: {}
  77. hosts:
  78. - socket_address:
  79. # this is the ecs service discovery endpoint for our service
  80. address: testservice.ecs
  81. port_value: 80
  82. admin:
  83. access_log_path: "/dev/null"
  84. address:
  85. socket_address:
  86. address: 0.0.0.0
  87. port_value: 8001
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement