forked from openfaas/faas-netes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnats.yml
62 lines (59 loc) · 1.13 KB
/
nats.yml
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
---
apiVersion: v1
kind: Service
metadata:
name: nats
labels:
app: nats
spec:
type: NodePort
ports:
- port: 4222
protocol: TCP
targetPort: 4222
nodePort: 31114
selector:
app: nats
---
apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1
kind: Deployment
metadata:
name: nats
spec:
replicas: 1
template:
metadata:
labels:
app: nats
spec:
containers:
- name: nats
image: nats-streaming:0.5.0
imagePullPolicy: Always
ports:
- containerPort: 4222
protocol: TCP
- containerPort: 8222
protocol: TCP
command: ["/nats-streaming-server"]
args:
- --store
- memory
- --cluster_id
- faas-cluster
---
apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1
kind: Deployment
metadata:
name: queue-worker
spec:
replicas: 1
template:
metadata:
labels:
app: queue-worker
spec:
containers:
- name: queue-worker
image: functions/queue-worker:0.1
imagePullPolicy: Always