Revert formatting change to envoy.yaml

This commit is contained in:
Rory Powell 2022-02-16 11:46:29 +00:00
parent d02b40ed50
commit 643e6a6702
1 changed files with 132 additions and 131 deletions

View File

@ -1,151 +1,152 @@
static_resources: static_resources:
listeners: listeners:
- name: main_listener - name: main_listener
address: address:
socket_address: { address: 0.0.0.0, port_value: 10000 } socket_address: { address: 0.0.0.0, port_value: 10000 }
filter_chains: filter_chains:
- filters: - filters:
- name: envoy.filters.network.http_connection_manager - name: envoy.filters.network.http_connection_manager
typed_config: typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
stat_prefix: ingress stat_prefix: ingress
codec_type: auto codec_type: auto
route_config: route_config:
name: local_route name: local_route
virtual_hosts: virtual_hosts:
- name: local_services - name: local_services
domains: ["*"] domains: ["*"]
routes: routes:
- match: { prefix: "/app/" } - match: { prefix: "/app/" }
route: route:
cluster: app-service cluster: app-service
prefix_rewrite: "/" prefix_rewrite: "/"
- match: { path: "/v1/update" } - match: { path: "/v1/update" }
route: route:
cluster: watchtower-service cluster: watchtower-service
- match: { prefix: "/builder/" } - match: { prefix: "/builder/" }
route: route:
cluster: app-service cluster: app-service
- match: { prefix: "/builder" } - match: { prefix: "/builder" }
route: route:
cluster: app-service cluster: app-service
- match: { prefix: "/app_" }
route:
cluster: app-service
- match: { prefix: "/app_" } # special cases for worker admin (deprecated), global and system API
route: - match: { prefix: "/api/global/" }
cluster: app-service route:
cluster: worker-service
# special cases for worker admin (deprecated), global and system API - match: { prefix: "/api/admin/" }
- match: { prefix: "/api/global/" } route:
route: cluster: worker-service
cluster: worker-service
- match: { prefix: "/api/admin/" } - match: { prefix: "/api/system/" }
route: route:
cluster: worker-service cluster: worker-service
- match: { prefix: "/api/system/" } - match: { path: "/" }
route: route:
cluster: worker-service cluster: app-service
- match: { path: "/" } # special case for when API requests are made, can just forward, not to minio
route: - match: { prefix: "/api/" }
cluster: app-service route:
cluster: app-service
timeout: 120s
# special case for when API requests are made, can just forward, not to minio - match: { prefix: "/worker/" }
- match: { prefix: "/api/" } route:
route: cluster: worker-service
cluster: app-service prefix_rewrite: "/"
timeout: 120s
- match: { prefix: "/worker/" } - match: { prefix: "/db/" }
route: route:
cluster: worker-service cluster: couchdb-service
prefix_rewrite: "/" prefix_rewrite: "/"
- match: { prefix: "/db/" } # minio is on the default route because this works
route: # best, minio + AWS SDK doesn't handle path proxy
cluster: couchdb-service - match: { prefix: "/" }
prefix_rewrite: "/" route:
cluster: minio-service
# minio is on the default route because this works http_filters:
# best, minio + AWS SDK doesn't handle path proxy - name: envoy.filters.http.router
- match: { prefix: "/" }
route:
cluster: minio-service
http_filters:
- name: envoy.filters.http.router
clusters: clusters:
- name: app-service - name: app-service
connect_timeout: 0.25s connect_timeout: 0.25s
type: strict_dns type: strict_dns
lb_policy: round_robin lb_policy: round_robin
load_assignment: load_assignment:
cluster_name: app-service cluster_name: app-service
endpoints: endpoints:
- lb_endpoints: - lb_endpoints:
- endpoint: - endpoint:
address: address:
socket_address: socket_address:
address: app-service address: app-service
port_value: 4002 port_value: 4002
- name: minio-service - name: minio-service
connect_timeout: 0.25s connect_timeout: 0.25s
type: strict_dns type: strict_dns
lb_policy: round_robin lb_policy: round_robin
load_assignment: load_assignment:
cluster_name: minio-service cluster_name: minio-service
endpoints: endpoints:
- lb_endpoints: - lb_endpoints:
- endpoint: - endpoint:
address: address:
socket_address: socket_address:
address: minio-service address: minio-service
port_value: 9000 port_value: 9000
- name: worker-service - name: worker-service
connect_timeout: 0.25s connect_timeout: 0.25s
type: strict_dns type: strict_dns
lb_policy: round_robin lb_policy: round_robin
load_assignment: load_assignment:
cluster_name: worker-service cluster_name: worker-service
endpoints: endpoints:
- lb_endpoints: - lb_endpoints:
- endpoint: - endpoint:
address: address:
socket_address: socket_address:
address: worker-service address: worker-service
port_value: 4003 port_value: 4003
- name: couchdb-service - name: couchdb-service
connect_timeout: 0.25s connect_timeout: 0.25s
type: strict_dns type: strict_dns
lb_policy: round_robin lb_policy: round_robin
load_assignment: load_assignment:
cluster_name: couchdb-service cluster_name: couchdb-service
endpoints: endpoints:
- lb_endpoints: - lb_endpoints:
- endpoint: - endpoint:
address: address:
socket_address: socket_address:
address: couchdb-service address: couchdb-service
port_value: 5984 port_value: 5984
- name: watchtower-service
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
load_assignment:
cluster_name: watchtower-service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: watchtower-service
port_value: 8080
- name: watchtower-service
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
load_assignment:
cluster_name: watchtower-service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: watchtower-service
port_value: 8080