apiVersion: apps/v1
kind: Deployment
metadata:
  name: mongo-tst-oasiss-deployment  
  labels:
    k8s-app: oasiss-mongo-tst
spec:
  replicas: 1
  selector:
    matchLabels:
      k8s-app: oasiss-mongo-tst
  strategy: 
    type: Recreate
  template:
    metadata:
      labels:
        k8s-app: oasiss-mongo-tst
    spec:
      containers:
      - name: oasiss-mongo-tst
        image: mongo  #image: pro-registry.pro.caas.caixabank.com/dockerhub/mongo:4.0.4 CXB
        ports:
        - containerPort: 27017
        env:
        - name: MONGO_INITDB_DATABASE
          value: test
        - name: MONGO_INITDB_ROOT_PASSWORD
          value: example
        - name: MONGO_INITDB_ROOT_USERNAME
          value: root
      imagePullSecrets:
      - name: registry