forked from monzo/envoy-preflight
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add quit without envoy timeout (#28)
* Allow scuttle to timeout if Envoy becomes unavailable after startup * Add new env var QUIT_WITHOUT_ENVOY_TIMEOUT
- Loading branch information
Showing
6 changed files
with
165 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: '3.8' | ||
|
||
services: | ||
scuttle: | ||
build: | ||
context: . | ||
dockerfile: "./docker/alpine/Dockerfile" | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
for i in `seq 10` | ||
do | ||
echo executing | ||
sleep 1 | ||
done | ||
environment: | ||
ENVOY_ADMIN_API: "http://envoy:9901" | ||
ISTIO_QUIT_API: "http://envoy:15020" | ||
networks: | ||
- scuttle | ||
envoy: | ||
image: envoyproxy/envoy:v1.13.1 | ||
networks: | ||
- scuttle | ||
ports: | ||
- 80 | ||
- 443 | ||
- 15000 | ||
volumes: | ||
- ./docker/envoy.yaml:/etc/envoy/envoy.yaml | ||
|
||
networks: | ||
scuttle: | ||
name: "scuttle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
admin: | ||
access_log_path: /tmp/admin_access.log | ||
address: | ||
socket_address: | ||
protocol: TCP | ||
address: 0.0.0.0 | ||
port_value: 9901 | ||
static_resources: | ||
listeners: | ||
- name: listener_0 | ||
address: | ||
socket_address: | ||
protocol: TCP | ||
address: 0.0.0.0 | ||
port_value: 10000 | ||
filter_chains: | ||
- filters: | ||
- name: envoy.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager | ||
stat_prefix: ingress_http | ||
route_config: | ||
name: local_route | ||
virtual_hosts: | ||
- name: local_service | ||
domains: ["*"] | ||
routes: | ||
- match: | ||
prefix: "/" | ||
route: | ||
host_rewrite: www.google.com | ||
cluster: service_google | ||
http_filters: | ||
- name: envoy.router | ||
clusters: | ||
- name: service_google | ||
connect_timeout: 0.25s | ||
type: LOGICAL_DNS | ||
# Comment out the following line to test on v6 networks | ||
dns_lookup_family: V4_ONLY | ||
lb_policy: ROUND_ROBIN | ||
load_assignment: | ||
cluster_name: service_google | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: www.google.com | ||
port_value: 443 | ||
transport_socket: | ||
name: envoy.transport_sockets.tls | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.api.v2.auth.UpstreamTlsContext | ||
sni: www.google.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters