-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
54 lines (54 loc) · 1.02 KB
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: intent-engine
namespace: ie
spec:
replicas: 1
selector:
matchLabels:
app: intent-engine
template:
metadata:
labels:
app: intent-engine
spec:
containers:
- name: intent-engine
image: localhost:32000/intent-engine:latest
ports:
- containerPort: 3000
containerPort: 8080
env:
- name: QUEUE_NAME
value: my-queue
- name: AMQP_HOST
value: 172.17.0.2
- name: L2SM_SERVICE
value: localhost:8080
---
apiVersion: v1
kind: Service
metadata:
name: intent-service
namespace: ie
spec:
selector:
app: intent-engine
ports:
- name: rabbitmq
protocol: TCP
port: 51276
targetPort: 51276
- name: rabbitmq2
protocol: TCP
port: 5672
targetPort: 5672
- name: rabbitmq3
protocol: TCP
port: 44914
targetPort: 44914
- name: http
protocol: TCP
port: 8080
targetPort: 8080