-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroom-deployment.yaml
More file actions
47 lines (47 loc) · 987 Bytes
/
room-deployment.yaml
File metadata and controls
47 lines (47 loc) · 987 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: room
labels:
app: room
spec:
replicas: 1
selector:
matchLabels:
app: room
template:
metadata:
name: room
labels:
app: room
spec:
containers:
- name: room
image: room:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
env:
- name: SPRING_DATA_MONGODB_URI
value: "mongodb://mongodb-service:27017"
- name: SPRING_DATA_MONGODB_DATABASE
value: "meet"
- name: SPRING_KAFKA_BOOTSTRAP_SERVERS
value: "kafka-service:9092"
- name: SPRING_KAFKA_CONSUMER_GROUP_ID
value: "room"
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: room-service
spec:
type: NodePort
selector:
app: room
ports:
- port: 8080
targetPort: 8080
protocol: TCP
nodePort: 30080