-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenvoy.yaml
71 lines (70 loc) · 1.99 KB
/
envoy.yaml
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
62
63
64
65
66
67
68
69
70
71
node:
id: node0
cluster: cluster.local
admin:
access_log_path: /dev/null
profile_path: /dev/null
address:
socket_address:
address: 0.0.0.0
port_value: 8111
static_resources:
# secrets:
# - name: server_cert
# tls_certificate:
# certificate_chain:
# filename: hoge.crt
# private_key:
# filename: hoge.key
listeners:
- name: listener_0
address:
socket_address: { address: 0.0.0.0, port_value: 8123 }
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
stat_prefix: ingress_http
route_config:
name: route
virtual_hosts:
- name: app_service
domains: ["*"]
routes:
- match: { prefix: "/" }
direct_response:
status: 200
body:
inline_string: hello envoy
http_filters:
- name: envoy.router
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
"@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext
common_tls_context:
tls_certificate_sds_secret_configs:
- name: "metrics.dempa.moe"
sds_config:
resource_api_version: v3
api_config_source:
api_type: GRPC
transport_api_version: v3
grpc_services:
envoy_grpc:
cluster_name: xds_cluster
initial_metadata:
- key: x-hoge-token
value: fugafugafuga
clusters:
- name: xds_cluster
connect_timeout: 0.25s
lb_policy: ROUND_ROBIN
http2_protocol_options: {}
load_assignment:
cluster_name: xds_cluster
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address: {address: 127.0.0.1, port_value: 20000 }