2021-03-22 16:43:26 +01:00
|
|
|
static_resources:
|
|
|
|
listeners:
|
|
|
|
- name: main_listener
|
|
|
|
address:
|
|
|
|
socket_address: { address: 0.0.0.0, port_value: 10000 }
|
|
|
|
filter_chains:
|
|
|
|
- filters:
|
|
|
|
- name: envoy.filters.network.http_connection_manager
|
|
|
|
typed_config:
|
|
|
|
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
|
|
|
|
stat_prefix: ingress
|
|
|
|
codec_type: auto
|
|
|
|
route_config:
|
|
|
|
name: local_route
|
|
|
|
virtual_hosts:
|
|
|
|
- name: local_services
|
|
|
|
domains: ["*"]
|
|
|
|
routes:
|
|
|
|
- match: { prefix: "/db/" }
|
|
|
|
route:
|
|
|
|
cluster: couchdb-service
|
|
|
|
prefix_rewrite: "/"
|
|
|
|
|
2021-03-22 17:18:29 +01:00
|
|
|
- match: { prefix: "/cache/" }
|
|
|
|
route:
|
|
|
|
cluster: redis-service
|
|
|
|
prefix_rewrite: "/"
|
|
|
|
|
2021-04-01 13:02:31 +02:00
|
|
|
- match: { prefix: "/api/" }
|
|
|
|
route:
|
|
|
|
cluster: server-dev
|
|
|
|
|
2021-04-01 17:51:49 +02:00
|
|
|
- match: { prefix: "/app_" }
|
|
|
|
route:
|
2021-04-01 17:48:16 +02:00
|
|
|
cluster: server-dev
|
|
|
|
|
2021-04-01 17:56:17 +02:00
|
|
|
- match: { prefix: "/builder/" }
|
2021-04-01 13:02:31 +02:00
|
|
|
route:
|
2021-04-01 17:48:16 +02:00
|
|
|
cluster: builder-dev
|
|
|
|
|
2021-04-01 17:56:17 +02:00
|
|
|
- match: { prefix: "/builder" }
|
2021-04-01 17:48:16 +02:00
|
|
|
route:
|
2021-04-01 13:02:31 +02:00
|
|
|
cluster: builder-dev
|
2021-04-01 17:56:17 +02:00
|
|
|
prefix_rewrite: "/builder/"
|
2021-04-01 13:02:31 +02:00
|
|
|
|
2021-03-22 16:43:26 +01:00
|
|
|
# minio is on the default route because this works
|
|
|
|
# best, minio + AWS SDK doesn't handle path proxy
|
|
|
|
- match: { prefix: "/" }
|
|
|
|
route:
|
|
|
|
cluster: minio-service
|
|
|
|
|
|
|
|
http_filters:
|
|
|
|
- name: envoy.filters.http.router
|
|
|
|
|
|
|
|
clusters:
|
|
|
|
- name: minio-service
|
|
|
|
connect_timeout: 0.25s
|
|
|
|
type: strict_dns
|
|
|
|
lb_policy: round_robin
|
|
|
|
load_assignment:
|
|
|
|
cluster_name: minio-service
|
|
|
|
endpoints:
|
|
|
|
- lb_endpoints:
|
|
|
|
- endpoint:
|
|
|
|
address:
|
|
|
|
socket_address:
|
|
|
|
address: minio-service
|
|
|
|
port_value: 9000
|
|
|
|
|
|
|
|
- name: couchdb-service
|
|
|
|
connect_timeout: 0.25s
|
|
|
|
type: strict_dns
|
|
|
|
lb_policy: round_robin
|
|
|
|
load_assignment:
|
|
|
|
cluster_name: couchdb-service
|
|
|
|
endpoints:
|
|
|
|
- lb_endpoints:
|
|
|
|
- endpoint:
|
|
|
|
address:
|
|
|
|
socket_address:
|
|
|
|
address: couchdb-service
|
|
|
|
port_value: 5984
|
|
|
|
|
2021-03-22 17:18:29 +01:00
|
|
|
- name: redis-service
|
|
|
|
connect_timeout: 0.25s
|
|
|
|
type: strict_dns
|
|
|
|
lb_policy: round_robin
|
|
|
|
load_assignment:
|
|
|
|
cluster_name: redis-service
|
|
|
|
endpoints:
|
|
|
|
- lb_endpoints:
|
|
|
|
- endpoint:
|
|
|
|
address:
|
|
|
|
socket_address:
|
|
|
|
address: redis-service
|
|
|
|
port_value: 6379
|
2021-04-01 13:02:31 +02:00
|
|
|
|
|
|
|
- name: server-dev
|
|
|
|
connect_timeout: 0.25s
|
|
|
|
type: strict_dns
|
|
|
|
lb_policy: round_robin
|
|
|
|
load_assignment:
|
|
|
|
cluster_name: server-dev
|
|
|
|
endpoints:
|
|
|
|
- lb_endpoints:
|
|
|
|
- endpoint:
|
|
|
|
address:
|
|
|
|
socket_address:
|
2021-04-07 18:13:19 +02:00
|
|
|
address: {{ address }}
|
2021-04-01 13:02:31 +02:00
|
|
|
port_value: 4001
|
|
|
|
|
|
|
|
- name: builder-dev
|
|
|
|
connect_timeout: 15s
|
|
|
|
type: strict_dns
|
|
|
|
lb_policy: round_robin
|
|
|
|
load_assignment:
|
|
|
|
cluster_name: builder-dev
|
|
|
|
endpoints:
|
|
|
|
- lb_endpoints:
|
|
|
|
- endpoint:
|
|
|
|
address:
|
|
|
|
socket_address:
|
2021-04-07 18:13:19 +02:00
|
|
|
address: {{ address }}
|
2021-04-01 13:02:31 +02:00
|
|
|
port_value: 3000
|
|
|
|
|