Mastering Development System & Network

Postgres mount volume error in k8s

I’m trying to deploy Postgres with a PersistentVolumeClaim in GKE. As per the description here (look at PGDATA), it is recommended to create a subdirectory if mounting an external volume. So, this is what I did with my PG deployment: spec: containers: – name: postgres-dev image: “postgres:12.1” imagePullPolicy: IfNotPresent ports: – containerPort: 5432 env: – […]