Last active
July 26, 2021 15:27
-
-
Save kvaps/eae6f37e345c92d280e6340f78534267 to your computer and use it in GitHub Desktop.
ACME-proxy for multiple backends on envoy
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
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 10000 } | |
filter_chains: | |
- filters: | |
- name: envoy.filters.network.http_connection_manager | |
typed_config: | |
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | |
stat_prefix: ingress_http | |
codec_type: AUTO | |
route_config: | |
name: local_route | |
virtual_hosts: | |
- name: local_service | |
domains: ["*"] | |
routes: | |
- match: { prefix: "/.well-known/acme-challenge/" } | |
route: { cluster: some_service } | |
retry_policy: | |
num_retries: 10 | |
host_selection_retry_max_attempts: 10 | |
retry_on: "connect-failure,gateway-error,refused-stream,reset,retriable-status-codes" | |
retriable_status_codes: [404,308] | |
http_filters: | |
- name: envoy.filters.http.router | |
clusters: | |
- name: some_service | |
connect_timeout: 2s | |
type: STATIC | |
lb_policy: ROUND_ROBIN | |
load_assignment: | |
cluster_name: some_service | |
endpoints: | |
- lb_endpoints: | |
- endpoint: | |
address: | |
socket_address: | |
address: 10.10.8.10 | |
port_value: 80 | |
- endpoint: | |
address: | |
socket_address: | |
address: 10.10.8.20 | |
port_value: 80 | |
- endpoint: | |
address: | |
socket_address: | |
address: 10.10.8.30 | |
port_value: 80 | |
- endpoint: | |
address: | |
socket_address: | |
address: 10.10.8.40 | |
port_value: 80 | |
- endpoint: | |
address: | |
socket_address: | |
address: 10.10.8.50 | |
port_value: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment