blob: fb0605eed7929a91ae5a8c875dcc425091e9025f [file] [log] [blame]
Sergio Slobodriancab0a392017-07-13 08:42:10 -04001{
2 "listeners": [
3 {
4 "address": "tcp://0.0.0.0:3000",
5 "filters": [
6 {
7 "type": "read",
8 "name": "http_connection_manager",
9 "config": {
10 "codec_type": "auto",
11 "stat_prefix": "ingress_http",
12 "route_config": {
13 "virtual_hosts": [
14 {
15 "name": "backend",
16 "domains": ["*"],
17 "routes": [
18 {
19 "timeout_ms": 0,
20 "prefix": "/docker/",
21 "prefix_rewrite" : "/",
22 "cluster": "portainer"
23 },
24 {
25 "timeout_ms": 0,
26 "prefix": "/docker",
27 "prefix_rewrite" : "/",
28 "cluster": "portainer"
29 },
30 {
31 "timeout_ms": 0,
32 "prefix": "/grafana",
33 "prefix_rewrite" : "/",
34 "cluster": "grafana"
35 },
36 {
37 "timeout_ms": 0,
38 "prefix": "/consul/",
39 "prefix_rewrite" : "/",
40 "cluster": "consul"
41 },
42 {
43 "timeout_ms": 0,
44 "prefix": "/consul",
45 "prefix_rewrite" : "/",
46 "cluster": "consul"
47 },
48 {
49 "timeout_ms": 0,
50 "prefix": "/v1",
51 "cluster": "consul"
52 },
53 {
54 "timeout_ms": 0,
55 "prefix": "/ui",
56 "cluster": "consul"
57 }
58
59 ]
60 }
61 ]
62 },
63 "filters": [
64 {
65 "type": "decoder",
66 "name": "router",
67 "config": {}
68 }
69 ]
70 }
71 }
72 ]
73 },
74 {
75 "address": "tcp://0.0.0.0:50555",
76 "filters": [
77 {
78 "type": "read",
79 "name": "http_connection_manager",
80 "config": {
81 "codec_type": "http2",
82 "stat_prefix": "ingress_http2",
83 "access_log": [
84 {
85 "path": "/envoy/voltha_access_log.log"
86 }
87 ],
88 "route_config": {
89 "virtual_hosts": [
90 {
91 "name": "backend",
92 "domains": ["*"],
93 "routes": [
94 {
95 "timeout_ms": 0,
96 "prefix": "/voltha.HealthService/GetHealthStatus",
97 "cluster": "voltha-grpc"
98 },
99 {
100 "timeout_ms": 0,
101 "prefix": "/voltha.VolthaLocalService/CreateDevice",
102 "cluster": "voltha-grpc"
103 },
104 {
105 "timeout_ms": 0,
106 "prefix": "/voltha.VolthaLocalService",
107 "cluster": "voltha-grpc"
108 },
109 {
110 "timeout_ms": 0,
111 "prefix": "/voltha.",
112 "cluster": "voltha-grpc"
113 }
114 ]
115 }
116 ]
117 },
118 "filters": [
119 {
120 "type": "decoder",
121 "name": "router",
122 "config": {}
123 }
124 ]
125 }
126 }
127 ]
128 }
129 ],
130 "admin": {
131 "access_log_path": "/envoy/access.log",
132 "address": "tcp://0.0.0.0:8001"
133 },
134 "cluster_manager": {
135 "clusters": [
136 {
137 "name": "voltha-grpc",
138 "connect_timeout_ms": 250,
139 "type": "static",
140 "lb_type": "round_robin",
141 "features": "http2",
142 "hosts": [
143 {
144 "url": "tcp://10.0.2.15:32786"
145 }
146 ]
147 },
148 {
149 "name": "portainer",
150 "connect_timeout_ms": 250,
151 "type": "static",
152 "lb_type": "round_robin",
153 "hosts": [
154 {
155 "url": "tcp://10.0.2.15:9000"
156 }
157 ]
158 },
159 {
160 "name": "consul",
161 "connect_timeout_ms": 250,
162 "type": "static",
163 "lb_type": "round_robin",
164 "hosts": [
165 {
166 "url": "tcp://10.0.2.15:8500"
167 }
168 ]
169 },
170 {
171 "name": "grafana",
172 "connect_timeout_ms": 250,
173 "type": "static",
174 "lb_type": "round_robin",
175 "hosts": [
176 {
177 "url": "tcp://10.0.2.15:8882"
178 }
179 ]
180 }
181 ]
182 }
183}
184