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
apiVersion: proxy.otoroshi.io/v1
kind: Sidecar
metadata:
name: my-sidecar
spec:
# optional
kubernetes: false
# catch DNS request to route *.otoroshi.mesh to otoroshi, can be disabled in kubernetes if coredns is configured
dns_integration: true
# optional the mesh domain to catch
dns_domain: .otoroshi.mesh
# how to talk to the local otoroshi cluster
otoroshi:
# location can be omitted in kubernetes
location:
hostname: otoroshi-api.oto.tools
kubernetes:
service: otoroshi-service
namespace: otoroshi
port: 9999
tls: false
# location can be omitted in kubernetes
routing_location:
hostname: routing.oto.tools
kubernetes:
service: otoroshi-service
namespace: otoroshi
port: 9998
tls: true
credentials:
# we must support file path here or ENV.name
client_id: admin-api-apikey-id
client_secret: admin-api-apikey-secret
client_cert:
# optional
cert_location: /tmp/cert.pem
# optional
cert_value: |
---- BEGIN CERTIFICATE -----
xxxxxxxxxxxxxxxxxxx
---- END CERTIFICATE ----
# optional
key_location: /tmp/cert.pem
# optional
key_value: |
---- BEGIN PRIVATE KEY -----
xxxxxxxxxxxxxxxxxxx
---- END PRIVATE KEY ----
# how we expose the local app
inbound:
port: 15000
# optional
target_port: 3000
# optional
target_hostname: api-a.foo.bar
tls:
enabled: true
# optional otoroshi certificate id
cert_id: Lkw5xxlo4FNBjFjqxU7DMzUKr3frGPqn
mtls:
enabled: true
# optional otoroshi ca certificate id
ca_cert_id: otoroshi-intermediate-ca
otoroshi_protocol:
enabled: true
# optional otoroshi route id to get config if symmetrical
route_id: xxxx
# optional
secret: xxxxx
# optional
algo: HS256
# optional
version: V2
# optional
header_in_name: xxxx
# optional
header_out_name: xxxx
# what we want to call from the local app and how
outbounds:
# optional internal proxy port
port: 15001
sidecar-outbound.otoroshi.mesh:
# can be omitted if same as key
hostname: sidecar-outbound.otoroshi.mesh
# optional
path: /api/.*
apikey:
enabled: true
# optional otoroshi apikey entity id
apikey_id: apki_dev_ZOHqpXD1hGUoBXXB
mtls:
enabled: true
# optional otoroshi certificate id
client_cert_id: otoroshi-client
service-b.otoroshi.mesh:
# can be omitted if same as key
hostname: service-b.otoroshi.mesh
# optional
path: /.*
apikey:
enabled: true
# optional otoroshi apikey entity id
apikey_id: apki_dev_ZOHqpXD1hGUoBXXB
mtls:
enabled: true
# optional otoroshi certificate id
client_cert_id: otoroshi-client