Apply integration of SDK and admin RPC server (#69)

Co-authored-by: 안정균 <junggyun.ahn@navercorp.com>
This commit is contained in:
Kevin Park 2023-05-30 20:00:23 +09:00 committed by GitHub
parent 80eeb8de54
commit c49142f856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 13 deletions

View File

@ -26,7 +26,6 @@ services:
ports:
- '11101:11101'
- '11102:11102'
- '11103:11103'
depends_on:
- mongo
mongo:

View File

@ -32,4 +32,3 @@ services:
ports:
- '11101:11101'
- '11102:11102'
- '11103:11103'

View File

@ -5,7 +5,7 @@ admin:
static_resources:
listeners:
- name: listener_0
- name: yorkie_rpc_listener
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
filter_chains:
@ -13,7 +13,6 @@ static_resources:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
codec_type: auto
stat_prefix: ingress_http
route_config:
name: local_route
@ -23,7 +22,7 @@ static_resources:
routes:
- match: { prefix: "/" }
route:
cluster: yorkie_service
cluster: yorkie_rpc_service
# https://github.com/grpc/grpc-web/issues/361
max_stream_duration:
grpc_timeout_header_max: 0s
@ -31,7 +30,7 @@ static_resources:
allow_origin_string_match:
- prefix: "*"
allow_methods: GET, PUT, DELETE, POST, OPTIONS
allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-api-key,x-user-agent,x-grpc-web,grpc-timeout,authorization
allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-api-key,x-shard-key,x-user-agent,x-grpc-web,grpc-timeout,authorization,x-yorkie-user-agent
max_age: "1728000"
expose_headers: custom-header-1,grpc-status,grpc-message
http_filters:
@ -39,13 +38,13 @@ static_resources:
- name: envoy.filters.http.cors
- name: envoy.filters.http.router
clusters:
- name: yorkie_service
- name: yorkie_rpc_service
connect_timeout: 0.25s
type: logical_dns
http2_protocol_options: {}
lb_policy: round_robin
load_assignment:
cluster_name: cluster_0
cluster_name: yorkie_cluster
endpoints:
- lb_endpoints:
- endpoint:

View File

@ -5,7 +5,7 @@ admin:
static_resources:
listeners:
- name: listener_0
- name: yorkie_rpc_listener
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
filter_chains:
@ -22,7 +22,7 @@ static_resources:
routes:
- match: { prefix: "/" }
route:
cluster: yorkie_service
cluster: yorkie_rpc_service
# https://github.com/grpc/grpc-web/issues/361
max_stream_duration:
grpc_timeout_header_max: 0s
@ -30,7 +30,7 @@ static_resources:
allow_origin_string_match:
- prefix: "*"
allow_methods: GET, PUT, DELETE, POST, OPTIONS
allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-api-key,x-user-agent,x-grpc-web,grpc-timeout,authorization
allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-api-key,x-shard-key,x-user-agent,x-grpc-web,grpc-timeout,authorization,x-yorkie-user-agent
max_age: "1728000"
expose_headers: custom-header-1,grpc-status,grpc-message
http_filters:
@ -38,7 +38,7 @@ static_resources:
- name: envoy.filters.http.cors
- name: envoy.filters.http.router
clusters:
- name: yorkie_service
- name: yorkie_rpc_service
connect_timeout: 0.25s
type: logical_dns
http2_protocol_options: {}
@ -49,7 +49,7 @@ static_resources:
# - Linux: an IP address of the host machine or docker-0 interface or some addresses defined in extra hosts of docker-compose.yml
# you can simply use the yorkie container name(e.g. yorkie) in docker-compose whatever your OS is.
load_assignment:
cluster_name: cluster_0
cluster_name: yorkie_cluster
endpoints:
- lb_endpoints:
- endpoint: