Helm Postgres Install - Chapter 15

I’m running into an error when trying to get helm to setup the posgres server in chapter 15.

$ helm install --name postgresql-database --set postgressDatabase=emojijournal stable/postgresql --version 0.17.0

Error: validation failed: error validating "": error validating data: unknown object type "nil" in PersistentVolumeClaim.metadata.annotations.helm.sh/resource-policy

@seabaylea Can you please help with this when you get a chance? Thank you - much appreciated! :]

Hi @dillanlaughlin:

It looks like the most recent version of Helm has broken some of the older charts. Luckily we can fix the issue manually using a --set when we install the chart.

Can you install PostgeSQL using the following command instead?

helm install --name postgresql-database --set postgresDatabase=emojijournal --set persistence.resourcePolicy=nil stable/postgresql --version 0.17.0

Thanks @seabaylea, that worked!