1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| admin: access_log_path: /tmp/admin_access.log profile_path: /tmp/envoy.prof address: socket_address: { address: 127.0.0.1, port_value: 9901 }
static_resources: listeners: - name: listener_0 address: socket_address: { address: 127.0.0.1, port_value: 80 } filter_chains: - filters: - name: envoy.http_connection_manager config: stat_prefix: egress_http codec_type: AUTO route_config: name: test_route virtual_hosts: - name: web_service_1 domains: ["*.ik8s.io", "ik8s.io"] routes: - match: { prefix: "/" } route: { cluster: web_cluster_1 } - name: web_service_2 domains: ["*.k8scast.cn","k8scast.cn"] routes: - match: { prefix: "/" } route: { cluster: web_cluster_2 } http_filters: - name: envoy.router
clusters: - name: web_cluster_1 connect_timeout: 0.25s type: STRICT_DNS lb_policy: ROUND_ROBIN load_assignment: cluster_name: web_cluster_1 endpoints: - lb_endpoints: - endpoint: address: socket_address: address: myservice port_value: 8081
- name: web_cluster_2 connect_timeout: 0.25s type: STRICT_DNS lb_policy: ROUND_ROBIN load_assignment: cluster_name: web_cluster_2 endpoints: - lb_endpoints: - endpoint: address: socket_address: address: webserver1 port_value: 8081
|