File tree Expand file tree Collapse file tree 3 files changed +45
-18
lines changed
net/grpc/gateway/examples Expand file tree Collapse file tree 3 files changed +45
-18
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ static_resources:
10
10
socket_address : { address: 0.0.0.0, port_value: 8080 }
11
11
filter_chains :
12
12
- filters :
13
- - name : envoy.http_connection_manager
14
- config :
13
+ - name : envoy.filters.network.http_connection_manager
14
+ typed_config :
15
+ " @type " : type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
15
16
codec_type : auto
16
17
stat_prefix : ingress_http
17
18
route_config :
@@ -32,13 +33,21 @@ static_resources:
32
33
max_age : " 1728000"
33
34
expose_headers : custom-header-1,grpc-status,grpc-message
34
35
http_filters :
35
- - name : envoy.grpc_web
36
- - name : envoy.cors
37
- - name : envoy.router
36
+ - name : envoy.filters.http. grpc_web
37
+ - name : envoy.filters.http. cors
38
+ - name : envoy.filters.http. router
38
39
clusters :
39
40
- name : echo_service
40
41
connect_timeout : 0.25s
41
42
type : logical_dns
42
43
http2_protocol_options : {}
43
44
lb_policy : round_robin
44
- hosts : [{ socket_address: { address: node-server, port_value: 9090 }}]
45
+ load_assignment :
46
+ cluster_name : cluster_0
47
+ endpoints :
48
+ - lb_endpoints :
49
+ - endpoint :
50
+ address :
51
+ socket_address :
52
+ address : node-server
53
+ port_value : 9090
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ static_resources:
10
10
socket_address : { address: 0.0.0.0, port_value: 8080 }
11
11
filter_chains :
12
12
- filters :
13
- - name : envoy.http_connection_manager
14
- config :
13
+ - name : envoy.filters.network.http_connection_manager
14
+ typed_config :
15
+ " @type " : type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
15
16
codec_type : auto
16
17
stat_prefix : ingress_http
17
18
route_config :
@@ -32,14 +33,22 @@ static_resources:
32
33
max_age : " 1728000"
33
34
expose_headers : custom-header-1,grpc-status,grpc-message
34
35
http_filters :
35
- - name : envoy.grpc_web
36
- - name : envoy.cors
37
- - name : envoy.router
36
+ - name : envoy.filters.http. grpc_web
37
+ - name : envoy.filters.http. cors
38
+ - name : envoy.filters.http. router
38
39
clusters :
39
40
- name : greeter_service
40
41
connect_timeout : 0.25s
41
42
type : logical_dns
42
43
http2_protocol_options : {}
43
44
lb_policy : round_robin
44
45
# win/mac hosts: Use address: host.docker.internal instead of address: localhost in the line below
45
- hosts : [{ socket_address: { address: 0.0.0.0, port_value: 9090 }}]
46
+ load_assignment :
47
+ cluster_name : cluster_0
48
+ endpoints :
49
+ - lb_endpoints :
50
+ - endpoint :
51
+ address :
52
+ socket_address :
53
+ address : 0.0.0.0
54
+ port_value : 9090
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ static_resources:
10
10
socket_address : { address: 0.0.0.0, port_value: 8080 }
11
11
filter_chains :
12
12
- filters :
13
- - name : envoy.http_connection_manager
14
- config :
13
+ - name : envoy.filters.network.http_connection_manager
14
+ typed_config :
15
+ " @type " : type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
15
16
codec_type : auto
16
17
stat_prefix : ingress_http
17
18
route_config :
@@ -32,13 +33,21 @@ static_resources:
32
33
max_age : " 1728000"
33
34
expose_headers : x-grpc-test-echo-initial,x-grpc-test-echo-trailing-bin,grpc-status,grpc-message
34
35
http_filters :
35
- - name : envoy.grpc_web
36
- - name : envoy.cors
37
- - name : envoy.router
36
+ - name : envoy.filters.http. grpc_web
37
+ - name : envoy.filters.http. cors
38
+ - name : envoy.filters.http. router
38
39
clusters :
39
40
- name : interop_service
40
41
connect_timeout : 0.25s
41
42
type : logical_dns
42
43
http2_protocol_options : {}
43
44
lb_policy : round_robin
44
- hosts : [{ socket_address: { address: localhost, port_value: 7074 }}]
45
+ load_assignment :
46
+ cluster_name : cluster_0
47
+ endpoints :
48
+ - lb_endpoints :
49
+ - endpoint :
50
+ address :
51
+ socket_address :
52
+ address : localhost
53
+ port_value : 7074
You can’t perform that action at this time.
0 commit comments