-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmongoexp_deployment.yml
More file actions
34 lines (34 loc) · 885 Bytes
/
Copy pathmongoexp_deployment.yml
File metadata and controls
34 lines (34 loc) · 885 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: mongoexp-deployment
spec:
selector:
matchLabels:
app: mongoexp
template:
metadata:
labels:
app: mongoexp
spec:
containers:
- name: mongoexp
image: mongo-express
ports:
- containerPort: 8081
env:
- name: ME_CONFIG_MONGODB_ADMINUSERNAME
valueFrom:
secretKeyRef:
name: mongodb-secret
key: username
- name: ME_CONFIG_MONGODB_ADMINPASSWORD
valueFrom:
secretKeyRef:
name: mongodb-secret
key: password
- name: ME_CONFIG_MONGODB_SERVER
valueFrom:
configMapKeyRef:
name: mongoexp-configmap
key: database_endpoint