Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Configuration for administrative purposes
- admin:
- access_log_path: /tmp/admin_access.log
- address:
- socket_address:
- protocol: TCP
- address: 127.0.0.1
- port_value: 9901
- static_resources:
- listeners:
- # Configure a listener to accept all incoming TCP connections at port 10000
- - name: listener_10000
- address:
- socket_address:
- protocol: TCP
- address: 0.0.0.0
- port_value: 10000
- # Describe the connection details that are being accepted
- filter_chains:
- - filters:
- # Notify Envoy to only accept TCP connections of type HTTP at this listener
- - name: envoy.filters.network.http_connection_manager
- typed_config:
- "@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
- # Define a prefix for identifying in logs
- stat_prefix: ingress_http
- # Define details of the route that points at the desired resource
- route_config:
- name: local_route
- virtual_hosts:
- - name: local_service
- domains: ["*"]
- routes:
- # README: Check the note below
- # # # #
- # # This section redirects incoming /api/etc/ to /etc
- # - match:
- # prefix: "/api/"
- # route:
- # prefix_rewrite: "/"
- # cluster: service_backend
- # # This section redirects all incoming /api to /
- # - match:
- # prefix: "/api"
- # route:
- # prefix_rewrite: "/"
- # cluster: service_backend
- # # # #
- - match:
- prefix: "/"
- route:
- cluster: service_frontend
- http_filters:
- - name: envoy.filters.http.router
- clusters:
- - name: service_frontend
- connect_timeout: 0.25s
- type: LOGICAL_DNS
- dns_lookup_family: V4_ONLY
- lb_policy: ROUND_ROBIN
- load_assignment:
- cluster_name: service_frontend
- endpoints:
- - lb_endpoints:
- - endpoint:
- address:
- socket_address:
- address: rebhu-front
- port_value: 3000
- # README: Check the note below
- # # # #
- # - name: service_backend
- # connect_timeout: 0.25s
- # type: LOGICAL_DNS
- # dns_lookup_family: V4_ONLY
- # lb_policy: ROUND_ROBIN
- # load_assignment:
- # cluster_name: service_backend
- # endpoints:
- # - lb_endpoints:
- # - endpoint:
- # address:
- # socket_address:
- # address: rebhu-back
- # port_value: 4000
- # # # #
- ## NOTE:
- # The section marked with "# README: Check the note below"
- # has been commented to simplify this Envoy configuration.
- # Please feel free to uncomment the sections.
Add Comment
Please, Sign In to add comment