-
Notifications
You must be signed in to change notification settings - Fork 111
/
example-super-cluster.yaml
64 lines (51 loc) · 1.44 KB
/
example-super-cluster.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
---
apiVersion: "nats.io/v1alpha2"
kind: "NatsCluster"
metadata:
name: "nats-super-cluster"
spec:
size: 3
version: "nightly"
serverImage: "synadia/nats-server"
natsConfig:
debug: true
trace: true
tls:
# TLS timeout for client connections
clientsTLSTimeout: 5
# TLS timeout for gateway connections
gatewaysTLSTimeout: 5
# Certificates to secure the NATS client connections:
serverSecret: "nats-server-tls"
serverSecretCAFileName: "ca.crt"
serverSecretKeyFileName: "tls.key"
serverSecretCertFileName: "tls.crt"
# Certificates to secure the routes.
gatewaySecret: "nats-gateways-tls"
gatewaySecretCAFileName: "ca.crt"
gatewaySecretKeyFileName: "tls.key"
gatewaySecretCertFileName: "tls.crt"
# Certificates to secure the leafnode.
leafnodeSecret: "nats-leafnodes-tls"
leafnodeSecretCAFileName: "ca.crt"
leafnodeSecretKeyFileName: "tls.key"
leafnodeSecretCertFileName: "tls.crt"
pod:
enableClientsHostPort: true
advertiseExternalIP: true
gatewayConfig:
name: example
hostPort: 32328
gateways:
- name: example
url: nats://example.com:32328
leafnodeConfig:
hostPort: 4224
operatorConfig:
secret: operator-jwt
systemAccount: "AASYS..."
resolver: URL(https://example.com/jwt/v1/accounts/)
template:
spec:
# Required to be able to lookup public ip address from a server.
serviceAccountName: "nats-server"