DEV Community

Frederick Ollinger
Frederick Ollinger

Posted on

1

Deploy Postgresql with Helm

Helm is the package manager for deploying pre-built packages to Kubernetes.

I found the Postgresql package here: https://artifacthub.io/packages/helm/bitnami/postgresql

Follow the TL;DR

helm install my-release oci://registry-1.docker.io/bitnamicharts/postgresql
Enter fullscreen mode Exit fullscreen mode

Looks like has issues:

kubectl describe pod my-release-postgresql-0


  Warning  FailedScheduling  2m33s  default-scheduler  0/1 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling
Enter fullscreen mode Exit fullscreen mode

Well that did not work out. Let's figure out what's wrong.

Seems like it's related to a Persistent Volume Claim. What is that?

A Persistent Volume is a piece of storage in your Kubernetes cluster. It is provisioned by the cluster administrator or dynamically provisioned using a storage class.

It represents a physical storage resource, which can be backed by various storage systems (e.g., NFS, cloud storage like AWS EBS, etc.).

"So a persistent volume (PV) is the "physical" volume on the host machine that stores your persistent data. A persistent volume claim (PVC) is a request for the platform to create a PV for you, and you attach PVs to your pods via a PVC." [1]

References

  1. Persistent volume vs. persistent volume claim https://stackoverflow.com/questions/48956049/what-is-the-difference-between-persistent-volume-pv-and-persistent-volume-clai

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more