-
Notifications
You must be signed in to change notification settings - Fork 0
/
orders-depl.yaml
46 lines (46 loc) · 991 Bytes
/
orders-depl.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: orders-depl
spec:
replicas: 1
selector:
matchLabels:
app: orders
template:
metadata:
labels:
app: orders
spec:
containers:
- name: orders
image: rallycoding/orders
env:
- name: NATS_CLIENT_ID
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NATS_URL
value: 'https://nats-srv:4222'
- name: NATS_CLUSTER_ID
value: ticketing
- name: MONGO_URI
value: 'mongodb:https://orders-mongo-srv:27017/orders'
- name: JWT_KEY
valueFrom:
secretKeyRef:
name: jwt-secret
key: JWT_KEY
---
apiVersion: v1
kind: Service
metadata:
name: orders-srv
spec:
selector:
app: orders
ports:
- name: orders
protocol: TCP
port: 3000
targetPort: 3000