
apiVersion: apps/v1
kind: Deployment
metadata:
  name: "couchdb.org1.dummy.com"
  namespace: dummy-com
  labels:
    component: "couchdb.org1.dummy.com"
spec:
  replicas: 1
  selector:
    matchLabels:
      component: "couchdb.org1.dummy.com"
  template:
    metadata:
      labels:
        component: "couchdb.org1.dummy.com"
    spec:
      containers:
        - name: couchdb-org1-dummy-com
          image: couchdb:3.1.1
          env:
            - name: COUCHDB_USER
              valueFrom:
                secretKeyRef:
                  name: couchdb-org1-dummy-com
                  key: username
            - name: COUCHDB_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: couchdb-org1-dummy-com
                  key: password
          ports:
            - containerPort: 5984
          livenessProbe:
            httpGet:
              path: /
              port: 5984
            initialDelaySeconds: 5
            failureThreshold: 5
            periodSeconds: 1
