-
Notifications
You must be signed in to change notification settings - Fork 13
/
zilla.yaml
133 lines (133 loc) · 2.74 KB
/
zilla.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
name: example
catalogs:
host_filesystem:
type: filesystem
options:
subjects:
echo:
path: proto/echo.proto
vaults:
my_servers:
type: filesystem
options:
keys:
store: tls/localhost.p12
type: pkcs12
password: ${{env.KEYSTORE_PASSWORD}}
bindings:
north_tcp_server:
type: tcp
kind: server
options:
host: 0.0.0.0
port:
- 7151
- 7153
routes:
- when:
- port: 7151
exit: north_http_server
- when:
- port: 7153
exit: north_tls_server
north_tls_server:
type: tls
kind: server
vault: my_servers
options:
keys:
- localhost
sni:
- localhost
alpn:
- h2
exit: north_http_server
north_http_server:
type: http
kind: server
options:
versions:
- h2
access-control:
policy: cross-origin
exit: north_grpc_server
north_grpc_server:
type: grpc
kind: server
catalog:
host_filesystem:
- subject: echo
routes:
- when:
- method: grpc.examples.echo.Echo/*
exit: north_grpc_kafka_mapping
north_grpc_kafka_mapping:
type: grpc-kafka
kind: proxy
routes:
- when:
- method: grpc.examples.echo.Echo/*
exit: north_kafka_cache_client
with:
capability: produce
topic: echo-requests
acks: leader_only
reply-to: echo-responses
north_kafka_cache_client:
type: kafka
kind: cache_client
exit: south_kafka_cache_server
south_kafka_cache_server:
type: kafka
kind: cache_server
exit: south_kafka_client
south_kafka_client:
type: kafka
kind: client
options:
servers:
- kafka:29092
exit: south_tcp_client
south_tcp_client:
type: tcp
kind: client
west_kafka_grpc_remote_server:
type: kafka-grpc
kind: remote_server
entry: north_kafka_cache_client
options:
acks: leader_only
routes:
- exit: west_grpc_client
when:
- topic: echo-requests
reply-to: echo-responses
method: grpc.examples.echo.Echo/*
with:
scheme: http
authority: ${{env.ECHO_SERVER_HOST}}:${{env.ECHO_SERVER_PORT}}
west_grpc_client:
type: grpc
kind: client
routes:
- exit: west_http_client
when:
- method: grpc.examples.echo.Echo/*
west_http_client:
type: http
kind: client
options:
versions:
- h2
exit: west_tcp_client
west_tcp_client:
type: tcp
kind: client
options:
host: ${{env.ECHO_SERVER_HOST}}
port: ${{env.ECHO_SERVER_PORT}}
telemetry:
exporters:
stdout_logs_exporter:
type: stdout