apiVersion: v1
kind: Pod
metadata:
  name: postgres-pod
spec:
  restartPolicy: Never
  containers:
  - name: postgres
    image: docker.io/postgres:13.1-alpine
    env:
    - name: POSTGRES_PASSWORD
      value: abcde12345
    volumeMounts:
    - mountPath: /docker-entrypoint-initdb.d/initdb.sql
      name: initdb
      readOnly: true
  volumes:
  - name: initdb
    hostPath:
      path: ./initdb.sql
