Newer
Older
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
apiVersion: v1
data:
AUTHORIZE_API: ${AUTHORIZE_API}
MONGO_DB_URL: ${MONGO_DB_URL}
MONGO_DB_USER: ${MONGO_DB_USER}
MONGO_DB_NAME: ${MONGO_DB_NAME}
REGION: ${REGION}
kind: ConfigMap
metadata:
labels:
app: legal
name: legal-config
namespace: default
---
apiVersion: apps/v1
kind: Deployment
metadata:
generateName: legal-anthos
labels:
app: legal
name: legal
namespace: default
spec:
selector:
matchLabels:
app: legal
replicas: 1
template:
metadata:
labels:
app: legal
spec:
containers:
- env:
- name: AUTHORIZE_API
valueFrom:
configMapKeyRef:
key: AUTHORIZE_API
name: legal-config
- name: MONGO_DB_URL
valueFrom:
configMapKeyRef:
key: MONGO_DB_URL
name: legal-config
- name: MONGO_DB_USER
valueFrom:
configMapKeyRef:
key: MONGO_DB_USER
name: legal-config
- name: MONGO_DB_PASSWORD
valueFrom:
secretKeyRef:
name: legal-secret
key: mongo.db.password
- name: MONGO_DB_NAME
valueFrom:
configMapKeyRef:
key: MONGO_DB_NAME
name: legal-config
- name: MB_RABBITMQ_URI
valueFrom:
secretKeyRef:
name: legal-secret
key: mb.rabbitmq.uri
- name: REGION
valueFrom:
configMapKeyRef:
key: REGION
name: legal-config
image: us.gcr.io/osdu-anthos-02/os-legal/anthos-legal:latest
name: os-legal-1-sha256-1
---
apiVersion: v1
kind: Service
metadata:
name: legal
namespace: default
spec:
ports:
- protocol: TCP
port: 80
targetPort: 8080
selector:
app: legal
type: LoadBalancer
---
apiVersion: v1
data:
mongo.db.password: ${MONGO_DB_PASSWORD}
mb.rabbitmq.uri: ${MB_RABBITMQ_URI}
kind: Secret
metadata:
name: legal-secret
namespace: default
type: Opaque