Forked from vbanthia-zz/envoy-external-lb-dynamic.yaml
Created
December 18, 2019 14:17
-
-
Save filipeandre/efb2e1c371a0e458922e9c843d02db11 to your computer and use it in GitHub Desktop.
Simple static envoy config for external kubernetes load balancer
This file contains hidden or 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: | |
| - address: | |
| socket_address: | |
| address: 0.0.0.0 | |
| port_value: 80 | |
| filter_chains: | |
| - filters: | |
| - name: envoy.tcp_proxy | |
| config: | |
| stat_prefix: external_lb | |
| cluster: k8s_worker_nodes | |
| - address: | |
| socket_address: | |
| address: 0.0.0.0 | |
| port_value: 443 | |
| filter_chains: | |
| - filters: | |
| - name: envoy.tcp_proxy | |
| config: | |
| stat_prefix: external_lb_tls | |
| cluster: k8s_worker_nodes_tls | |
| clusters: | |
| - name: k8s_worker_nodes | |
| connect_timeout: 0.25s | |
| type: EDS | |
| lb_policy: round_robin | |
| eds_cluster_config: | |
| eds_config: | |
| api_config_source: | |
| api_type: GRPC | |
| grpc_services: | |
| envoy_grpc: | |
| cluster_name: xds_cluster | |
| - name: k8s_worker_nodes_tls | |
| connect_timeout: 0.25s | |
| type: EDS | |
| lb_policy: round_robin | |
| eds_cluster_config: | |
| eds_config: | |
| api_config_source: | |
| api_type: GRPC | |
| grpc_services: | |
| envoy_grpc: | |
| cluster_name: xds_cluster | |
| - name: xds_cluster | |
| connect_timeout: 0.25s | |
| type: STRICT_DNS | |
| lb_policy: ROUND_ROBIN | |
| http2_protocol_options: {} | |
| load_assignment: | |
| cluster_name: xds_cluster | |
| endpoints: | |
| - lb_endpoints: | |
| - endpoint: | |
| address: | |
| socket_address: | |
| address: xds.example.com | |
| port_value: 5000 | |
| admin: | |
| access_log_path: "/dev/null" | |
| address: | |
| socket_address: | |
| address: 0.0.0.0 | |
| port_value: 8001 |
This file contains hidden or 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: | |
| - address: | |
| socket_address: | |
| address: 0.0.0.0 | |
| port_value: 80 | |
| filter_chains: | |
| - filters: | |
| - name: envoy.tcp_proxy | |
| config: | |
| stat_prefix: external_lb | |
| cluster: k8s_worker_nodes | |
| - address: | |
| socket_address: | |
| address: 0.0.0.0 | |
| port_value: 443 | |
| filter_chains: | |
| - filters: | |
| - name: envoy.tcp_proxy | |
| config: | |
| stat_prefix: external_lb_tls | |
| cluster: k8s_worker_nodes_tls | |
| clusters: | |
| - name: k8s_worker_nodes | |
| connect_timeout: 0.25s | |
| type: strict_dns | |
| lb_policy: round_robin | |
| hosts: | |
| - socket_address: | |
| address: 10.10.0.41 | |
| port_value: 30080 | |
| - socket_address: | |
| address: 10.10.0.42 | |
| port_value: 30080 | |
| - socket_address: | |
| address: 10.10.0.43 | |
| port_value: 30080 | |
| - name: k8s_worker_nodes_tls | |
| connect_timeout: 0.25s | |
| type: strict_dns | |
| lb_policy: round_robin | |
| hosts: | |
| - socket_address: | |
| address: 10.10.0.41 | |
| port_value: 30443 | |
| - socket_address: | |
| address: 10.10.0.42 | |
| port_value: 30443 | |
| - socket_address: | |
| address: 10.10.0.43 | |
| port_value: 30443 | |
| admin: | |
| access_log_path: "/dev/null" | |
| address: | |
| socket_address: | |
| address: 0.0.0.0 | |
| port_value: 8001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment