Skip to content

Commit

Permalink
pull apply-rpc-server-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
7hong13 committed May 30, 2023
1 parent e9337e9 commit 82f90d5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
1 change: 0 additions & 1 deletion docker/docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ services:
ports:
- '11101:11101'
- '11102:11102'
- '11103:11103'
depends_on:
- mongo
mongo:
Expand Down
1 change: 0 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ services:
ports:
- '11101:11101'
- '11102:11102'
- '11103:11103'
11 changes: 5 additions & 6 deletions docker/envoy-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ admin:

static_resources:
listeners:
- name: listener_0
- name: yorkie_rpc_listener
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
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
codec_type: auto
stat_prefix: ingress_http
route_config:
name: local_route
Expand All @@ -23,29 +22,29 @@ 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
cors:
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-shard-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:
- name: envoy.filters.http.grpc_web
- 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:
Expand Down
10 changes: 5 additions & 5 deletions docker/envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -22,23 +22,23 @@ 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
cors:
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-shard-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:
- name: envoy.filters.http.grpc_web
- 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: {}
Expand All @@ -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:
Expand Down

0 comments on commit 82f90d5

Please sign in to comment.