---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: pwe-maria
  name: pwe-maria
  namespace: pwe
spec:
  replicas: 1
  selector:
    matchLabels:
      app: pwe-maria
  template:
    metadata:
      labels:
        app: pwe-maria
    spec:
      containers:
      - image: kukam/pwe-maria:latest
        imagePullPolicy: Always
        name: pwe-maria
        env:
        - name: DB_ADMIN_PASSWORD 
          value: "root123"
        - name: DB_NAME
          value: "pwe"
        - name: DB_USER
          value: "pwe"
        - name: DB_USER_PASSWORD
          value: "pwe"
        ports:
        - containerPort: 7775
        volumeMounts:
        - name: maria-storage
          mountPath: /dbhome
      volumes:
      - name: maria-storage
        emptyDir: {}
