apiVersion: apps/v1 kind: Deployment metadata: name: django-minerva-proof-postgresql-deploy namespace: django-minerva-proof spec: replicas: 1 selector: matchLabels: app: django-minerva-proof-postgresql-deploy strategy: type: Recreate template: metadata: labels: app: django-minerva-proof-postgresql-deploy spec: containers: - envFrom: - configMapRef: name: django-minerva-proof-config image: postgres:14 name: django-minerva-proof-postgresql-deploy ports: - containerPort: 5432 protocol: TCP volumeMounts: - mountPath: /var/lib/postgresql/data/ name: pvc-django-minerva-proof subPath: postgres-data restartPolicy: Always volumes: - name: pvc-django-minerva-proof persistentVolumeClaim: claimName: pvc-django-minerva-proof