Skip to content

Commit 91775ed

Browse files
feat: add envoy.yaml for circleci
1 parent 5802d90 commit 91775ed

File tree

2 files changed

+85
-1
lines changed

2 files changed

+85
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/envoy-keyring.gpg] https://apt.envoyproxy.io focal main" | sudo tee /etc/apt/sources.list.d/envoy.list
2626
sudo apt-get update
2727
sudo apt-get install envoy
28-
envoy --version
28+
envoy -c .circleci/envoy.yaml
2929
- run:
3030
name: "Running tests"
3131
command: |

.circleci/envoy.yaml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#
2+
# The MIT License
3+
#
4+
# Permission is hereby granted, free of charge, to any person obtaining a copy
5+
# of this software and associated documentation files (the "Software"), to deal
6+
# in the Software without restriction, including without limitation the rights
7+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
# copies of the Software, and to permit persons to whom the Software is
9+
# furnished to do so, subject to the following conditions:
10+
#
11+
# The above copyright notice and this permission notice shall be included in
12+
# all copies or substantial portions of the Software.
13+
#
14+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
# THE SOFTWARE.
21+
#
22+
23+
static_resources:
24+
listeners:
25+
- name: listener_0
26+
address:
27+
socket_address: { address: 0.0.0.0, port_value: 10000 }
28+
filter_chains:
29+
- filter_chain_match:
30+
filters:
31+
- name: envoy.filters.network.http_connection_manager
32+
typed_config:
33+
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
34+
stat_prefix: ingress_http
35+
access_log:
36+
- name: envoy.access_loggers.stdout
37+
typed_config:
38+
"@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog
39+
http2_protocol_options:
40+
allow_connect: true
41+
upgrade_configs:
42+
- upgrade_type: CONNECT
43+
http_filters:
44+
- name: envoy.filters.http.router
45+
typed_config:
46+
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
47+
48+
route_config:
49+
name: local_route
50+
virtual_hosts:
51+
- name: local_service
52+
domains: [ "*" ]
53+
routes:
54+
- match:
55+
connect_matcher: { }
56+
route:
57+
cluster: influxdb_cluster
58+
upgrade_configs:
59+
upgrade_type: CONNECT
60+
connect_config: { }
61+
- match:
62+
prefix: "/"
63+
route:
64+
cluster: influxdb_cluster
65+
prefix_rewrite: "/"
66+
auto_host_rewrite: true
67+
timeout: 10s
68+
cors:
69+
allow_origin_string_match:
70+
- prefix: "*"
71+
allow_methods: GET, PUT, DELETE, POST, OPTIONS
72+
clusters:
73+
- name: influxdb_cluster
74+
connect_timeout: 10s
75+
type: STRICT_DNS
76+
load_assignment:
77+
cluster_name: influxdb_cluster
78+
endpoints:
79+
- lb_endpoints:
80+
- endpoint:
81+
address:
82+
socket_address:
83+
address: "us-east-1-1.aws.cloud2.influxdata.com"
84+
port_value: 443

0 commit comments

Comments
 (0)