forked from IBM/secret-map-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmap-api.yaml
46 lines (46 loc) · 888 Bytes
/
map-api.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: v1
kind: Service
metadata:
name: map-api-test
labels:
app: map-api
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
type: LoadBalancer
selector:
app: map-api-test
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: map-api-deployment-test
labels:
app: map-api
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: map-api-test
spec:
containers:
- image: anthonyamanse/map-api:2.0
name: map-api
env:
- name: MONGODB_URL
value: ''
volumeMounts:
- name: mongodb-cert
mountPath: "/etc/ssl"
readOnly: true
ports:
- containerPort: 8080
volumes:
- name: mongodb-cert
secret:
secretName: mongodb-cert-secret