-
Notifications
You must be signed in to change notification settings - Fork 0
/
command-deployment.yaml
49 lines (49 loc) · 1.05 KB
/
command-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: command
labels:
app: command
spec:
replicas: 1
selector:
matchLabels:
app: command
template:
metadata:
name: command
labels:
app: command
spec:
containers:
- name: command
image: command:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8081
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"
- name: SERVER_PORT
value: "8081"
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: command-service
spec:
type: NodePort
selector:
app: command
ports:
- port: 8081
targetPort: 8081
protocol: TCP
nodePort: 30081