Created
December 5, 2017 14:03
-
-
Save relistan/55a6f54bfc2b79d03eb0c8327c2aeb1c to your computer and use it in GitHub Desktop.
Sidecar Envoy Docker container
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
FROM envoyproxy/envoy:v1.5.0 | |
RUN apt-get update | |
COPY envoy.yaml /etc/envoy.yaml | |
ADD run.sh /run.sh | |
CMD /run.sh |
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
--- | |
admin: | |
access_log_path: "/tmp/admin_access.log" | |
address: tcp://0.0.0.0:9901 | |
lds: | |
refresh_delay_ms: 2000 | |
cluster: sidecar-lds | |
listeners: | |
- address: tcp://0.0.0.0:10000 | |
filters: | |
- name: envoy.http_connection_manager | |
config: | |
codec_type: auto | |
stat_prefix: ingress_http | |
route_config: | |
virtual_hosts: | |
- name: local_service | |
domains: [ "*" ] | |
routes: | |
- timeout_ms: 0 | |
prefix: "/" | |
cluster: sidecar-lds | |
filters: | |
- name: router | |
config: {} | |
cluster_manager: | |
clusters: | |
- name: lazyraster | |
connect_timeout_ms: 250 | |
type: sds | |
lb_type: round_robin | |
service_name: lazyraster | |
- name: sidecar-lds | |
connect_timeout_ms: 250 | |
type: static | |
lb_type: round_robin | |
hosts: [ {"url": "tcp://192.168.168.167:7777"} ] | |
sds: | |
refresh_delay_ms: 2000 | |
cluster: | |
name: sidecar-sds | |
connect_timeout_ms: 250 | |
type: static | |
lb_type: round_robin | |
hosts: [ {"url": "tcp://192.168.168.167:7777"} ] | |
cds: | |
refresh_delay_ms: 2000 | |
cluster: | |
name: sidecar-cds | |
connect_timeout_ms: 250 | |
type: static | |
lb_type: round_robin | |
hosts: [ {"url": "tcp://192.168.168.167:7777"} ] |
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
#!/bin/sh | |
ip addr add 192.168.168.168/32 dev lo | |
exec /usr/local/bin/envoy -c /etc/envoy.yaml --service-node docker1 --service-cluster nitro-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building And Running
Build:
docker build -t envoy:1.5.0 .
Run: