apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    type: database
  name: database
spec:
  replicas: 1
  selector:
    matchLabels:
      type: database
  template:
    metadata:
      labels:
        type: database
    spec:
      containers:
        - name: database
          image: postgres:13
          imagePullPolicy: "IfNotPresent"
          envFrom:
            - configMapRef:
                name: database-configmap
          ports:
            - containerPort: 5432
