From fc9e1753da75ed18d346d282cb12265654c271cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondrej=20Ladomirj=C3=A1k?= Date: Sun, 17 Apr 2022 17:24:06 +0000 Subject: [PATCH] Add 'z2/mongo-express-deployment.yaml' --- z2/mongo-express-deployment.yaml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 z2/mongo-express-deployment.yaml diff --git a/z2/mongo-express-deployment.yaml b/z2/mongo-express-deployment.yaml new file mode 100644 index 0000000..ac7d95b --- /dev/null +++ b/z2/mongo-express-deployment.yaml @@ -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