Add 'z2/mongo-express-deployment.yaml'
This commit is contained in:
parent
56020f285c
commit
fc9e1753da
38
z2/mongo-express-deployment.yaml
Normal file
38
z2/mongo-express-deployment.yaml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mongo-express-deployment
|
||||||
|
namespace: z2
|
||||||
|
labels:
|
||||||
|
app: mongo-express
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: mongo-express
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: mongo-express
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mongo-express
|
||||||
|
image: mongo-express:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 8081
|
||||||
|
env:
|
||||||
|
- name: ME_CONFIG_MONGODB_ADMINUSERNAME
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mongo-secret
|
||||||
|
key: mongo-username
|
||||||
|
- name: ME_CONFIG_MONGODB_ADMINPASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mongo-secret
|
||||||
|
key: mongo-password
|
||||||
|
- name: ME_CONFIG_MONGODB_SERVER
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: mongo-configmap
|
||||||
|
key: database-url
|
Loading…
Reference in New Issue
Block a user