-
Notifications
You must be signed in to change notification settings - Fork 76
/
01-nats.yaml
60 lines (58 loc) · 1.04 KB
/
01-nats.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
apiVersion: v1
kind: Service
metadata:
name: nats
namespace: voip
labels:
component: nats
spec:
selector:
component: nats
ports:
- name: client
port: 4222
- name: cluster
port: 6222
- name: monitor
port: 8222
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nats
namespace: voip
labels:
component: nats
spec:
replicas: 1
selector:
matchLabels:
component: nats
template:
metadata:
labels:
component: nats
spec:
containers:
- name: gnatsd
image: nats
ports:
- containerPort: 4222
name: client
- containerPort: 6222
name: cluster
- containerPort: 8222
name: monitor
livenessProbe:
tcpSocket:
port: 8222
initialDelaySeconds: 15
timeoutSeconds: 5
readinessProbe:
tcpSocket:
port: 8222
initialDelaySeconds: 15
timeoutSeconds: 5
resources:
requests:
cpu: "0.1"