-
Notifications
You must be signed in to change notification settings - Fork 0
/
testra-api-deployment.yaml
65 lines (65 loc) · 1.33 KB
/
testra-api-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apiVersion: v1
kind: Service
metadata:
name: testra-api
spec:
type: LoadBalancer
selector:
app: testra-api
ports:
- protocol: TCP
port: 8080
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.19.0 ()
creationTimestamp: null
labels:
app: testra-api
name: testra-api
spec:
replicas: 2
strategy: {}
selector:
matchLabels:
app: testra-api
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.19.0 ()
creationTimestamp: null
labels:
app: testra-api
spec:
containers:
- env:
- name: MONGO_HOST
value: mongo
- name: MONGO_PORT
value: "27017"
- name: MONGO_DATABASE
value: testra
- name: MONGO_USER
valueFrom:
secretKeyRef:
name: dev-db-secret
key: username
# value: testra
- name: MONGO_PASSWORD
valueFrom:
secretKeyRef:
name: dev-db-secret
key: password
# value: 89*qcC$$P[
image: pauljohnson2sky/testra-api:1.0
name: testra-api
ports:
- containerPort: 8080
resources: {}
restartPolicy: Always
status: {}