kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
metadata:
  name: mongodb
  labels:
    app: mongodb
spec:
  strategy:
    type: Rolling
    rollingParams:
      updatePeriodSeconds: 1
      intervalSeconds: 1
      timeoutSeconds: 600
      maxUnavailable: 25%
      maxSurge: 25%
    resources: {}
    activeDeadlineSeconds: 21600
  triggers:
    - type: ConfigChange
  replicas: 1
  revisionHistoryLimit: 10
  test: false
  selector:
    app: mongodb
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: mongodb
    spec:
      containers:
        - name: mongodb
          image: 'quay.io/bitnami/mongodb:4.4.5'
          ports:
            - name: mongodb
              containerPort: 27017
              protocol: TCP
          env:
            - name: MONGODB_USERNAME
              value: user
            - name: MONGODB_PASSWORD
              value: user
            - name: MONGODB_REPLICA_SET_NAME
              value: rs0
            - name: MONGODB_REPLICA_SET_MODE
              value: primary
            - name: MONGODB_ROOT_PASSWORD
              value: admin
            - name: MONGODB_DATABASE
              value: test
            - name: MONGODB_REPLICA_SET_KEY
              value: replica
          resources: {}
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          imagePullPolicy: IfNotPresent
      restartPolicy: Always
      terminationGracePeriodSeconds: 30
      dnsPolicy: ClusterFirst
      securityContext: {}
      schedulerName: default-scheduler
