|
| 1 | +admin: |
| 2 | + access_log_path: /tmp/admin_access.log |
| 3 | + address: |
| 4 | + socket_address: { address: 0.0.0.0, port_value: 9901 } |
| 5 | + |
| 6 | +static_resources: |
| 7 | + listeners: |
| 8 | + - name: yorkie_listener |
| 9 | + address: |
| 10 | + socket_address: { address: 0.0.0.0, port_value: 8080 } |
| 11 | + filter_chains: |
| 12 | + - filters: |
| 13 | + - name: envoy.filters.network.http_connection_manager |
| 14 | + typed_config: |
| 15 | + "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager |
| 16 | + stat_prefix: ingress_http |
| 17 | + route_config: |
| 18 | + name: yorkie_ring_hash_routes |
| 19 | + virtual_hosts: |
| 20 | + - name: yorkie_service |
| 21 | + domains: ["*"] |
| 22 | + routes: |
| 23 | + - match: { prefix: "/" } |
| 24 | + route: |
| 25 | + cluster: yorkie_service |
| 26 | + hash_policy: |
| 27 | + header: |
| 28 | + header_name: x-api-key |
| 29 | + # https://github.com/grpc/grpc-web/issues/361 |
| 30 | + max_stream_duration: |
| 31 | + grpc_timeout_header_max: 0s |
| 32 | + cors: |
| 33 | + allow_origin_string_match: |
| 34 | + - prefix: "*" |
| 35 | + allow_methods: GET, PUT, DELETE, POST, OPTIONS |
| 36 | + allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web,grpc-timeout,authorization,x-api-key |
| 37 | + max_age: "1728000" |
| 38 | + expose_headers: custom-header-1,grpc-status,grpc-message, grpc-status-details-bin |
| 39 | + http_filters: |
| 40 | + - name: envoy.filters.http.grpc_web |
| 41 | + - name: envoy.filters.http.cors |
| 42 | + - name: envoy.filters.http.router |
| 43 | + - name: admin_listener |
| 44 | + address: |
| 45 | + socket_address: { address: 0.0.0.0, port_value: 9090 } |
| 46 | + filter_chains: |
| 47 | + - filters: |
| 48 | + - name: envoy.filters.network.http_connection_manager |
| 49 | + typed_config: |
| 50 | + "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager |
| 51 | + stat_prefix: ingress_http |
| 52 | + route_config: |
| 53 | + name: yorkie_ring_hash_routes |
| 54 | + virtual_hosts: |
| 55 | + - name: yorkie_service |
| 56 | + domains: ["*"] |
| 57 | + routes: |
| 58 | + - match: { prefix: "/" } |
| 59 | + route: |
| 60 | + cluster: admin_service |
| 61 | + # https://github.com/grpc/grpc-web/issues/361 |
| 62 | + max_stream_duration: |
| 63 | + grpc_timeout_header_max: 0s |
| 64 | + cors: |
| 65 | + allow_origin_string_match: |
| 66 | + - prefix: "*" |
| 67 | + allow_methods: GET, PUT, DELETE, POST, OPTIONS |
| 68 | + allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web,grpc-timeout,authorization,x-api-key |
| 69 | + max_age: "1728000" |
| 70 | + expose_headers: custom-header-1,grpc-status,grpc-message, grpc-status-details-bin |
| 71 | + http_filters: |
| 72 | + - name: envoy.filters.http.grpc_web |
| 73 | + - name: envoy.filters.http.cors |
| 74 | + - name: envoy.filters.http.router |
| 75 | + clusters: |
| 76 | + - name: yorkie_service |
| 77 | + connect_timeout: 0.25s |
| 78 | + type: strict_dns |
| 79 | + http2_protocol_options: {} |
| 80 | + lb_policy: ring_hash |
| 81 | + ring_hash_lb_config: |
| 82 | + minimum_ring_size: 125 |
| 83 | + load_assignment: |
| 84 | + cluster_name: yorkie_cluster |
| 85 | + endpoints: |
| 86 | + - lb_endpoints: |
| 87 | + - endpoint: |
| 88 | + address: |
| 89 | + socket_address: |
| 90 | + address: host.docker.internal |
| 91 | + port_value: 11101 |
| 92 | + - endpoint: |
| 93 | + address: |
| 94 | + socket_address: |
| 95 | + address: host.docker.internal |
| 96 | + port_value: 11201 |
| 97 | + - endpoint: |
| 98 | + address: |
| 99 | + socket_address: |
| 100 | + address: host.docker.internal |
| 101 | + port_value: 11301 |
| 102 | + - name: admin_service |
| 103 | + connect_timeout: 0.25s |
| 104 | + type: strict_dns |
| 105 | + http2_protocol_options: {} |
| 106 | + lb_policy: ring_hash |
| 107 | + ring_hash_lb_config: |
| 108 | + minimum_ring_size: 125 |
| 109 | + load_assignment: |
| 110 | + cluster_name: admin_cluster |
| 111 | + endpoints: |
| 112 | + - lb_endpoints: |
| 113 | + - endpoint: |
| 114 | + address: |
| 115 | + socket_address: |
| 116 | + address: host.docker.internal |
| 117 | + port_value: 11103 |
| 118 | + - endpoint: |
| 119 | + address: |
| 120 | + socket_address: |
| 121 | + address: host.docker.internal |
| 122 | + port_value: 11203 |
| 123 | + - endpoint: |
| 124 | + address: |
| 125 | + socket_address: |
| 126 | + address: host.docker.internal |
| 127 | + port_value: 11303 |
0 commit comments