Advertisement
fornakter

mongo-express

Feb 2nd, 2025
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.97 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4.   name: mongo-express
  5.   labels:
  6.     app: mongo-express
  7. spec:
  8.   replicas: 1
  9.   selector:
  10.     matchLabels:
  11.       app: mongo-express
  12.   template:
  13.     metadata:
  14.       labels:
  15.         app: mongo-express
  16.     spec:
  17.       containers:
  18.         - name: mongo-express
  19.           image: mongo-express
  20.           ports:
  21.             - containerPort: 8081
  22.           env:
  23.             - name: ME_CONFIG_MONGODB_ADMINUSERNAME
  24.               valueFrom:
  25.                 secretKeyRef:
  26.                   name: mongodb-secret
  27.                   key: mongo-root-username
  28.             - name: ME_CONFIG_MONGODB_ADMINPASSWORD
  29.               valueFrom:
  30.                 secretKeyRef:
  31.                   name: mongodb-secret
  32.                   key: mongo-root-password
  33.             - name: ME_CONFIG_MONGODB_SERVER
  34.               valueFrom:
  35.                 configMapKeyRef:
  36.                   name: mongodb-configmap
  37.                   key: database_url
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement