Postgresql via Helm not installing Postgresql via Helm not installing kubernetes kubernetes

Postgresql via Helm not installing


You may be running into this issue: https://github.com/kubernetes/minikube/issues/2256

The problem is there's a bug in the hostpath volume provisioner that encounters an error when the 'subPath' field is present in the Deployment resource (event if the field has an empty value).

Here's a workaround that worked for me - unpack the postgresql chart and comment out the following line in deployment.yaml:

      # subPath: {{ .Values.persistence.subPath }}

Then redeploy the modified chart. If you're reliant on the 'subPath' field, this workaround won't work for you.

Note: This issue is also present on Kubernetes on Docker-for-Mac (which is where I've encountered it).