Created
May 31, 2024 15:03
-
-
Save chadmcrowell/7f54f06bc7d15f3705a4b685d0496d71 to your computer and use it in GitHub Desktop.
Envoy configMap to enable L7 routing
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: envoy-config | |
namespace: default | |
data: | |
envoy.yaml: | | |
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 | |
config: | |
stat_prefix: ingress_http | |
codec_type: AUTO | |
route_config: | |
name: local_route | |
virtual_hosts: | |
- name: local_service | |
domains: ["*"] | |
routes: | |
- match: { prefix: "/" } | |
route: { cluster: service_cluster } | |
http_filters: | |
- name: envoy.filters.http.router | |
clusters: | |
- name: service_cluster | |
connect_timeout: 0.25s | |
type: STRICT_DNS | |
lb_policy: ROUND_ROBIN | |
load_assignment: | |
cluster_name: service_cluster | |
endpoints: | |
- lb_endpoints: | |
- endpoint: | |
address: | |
socket_address: | |
address: my-app.default.svc.cluster.local | |
port_value: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment