<p><a href="https://i.stack.imgur.com/S2qyy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S2qyy.png" alt="kubernetes cluster" /></a></p>
<p>This is my proposed kubernetes cluster, I want to be able to run Postgresql database, with my nodes accessing storage machine for storing the data, is this using NFS a good option? How best can I run a database instance here?</p>

tinashe.chipomho
<p>I recommend you to use helm chart for deploying any kind of data base, it is very handy and easy to deploy, visit the link:
<a href="https://github.com/bitnami/charts/tree/master/bitnami/postgresql" rel="nofollow noreferrer">https://github.com/bitnami/charts/tree/master/bitnami/postgresql</a></p>
<p>Any way if you want to deploy Postgresql, first of all you need to create persistent volume(pv) and persistent volume claim(pvc), because you choosed NFS for your cluster storage solution. You have to manually create your pv and pvc.</p>
<p>But kubernetes has storage class solution too, it is better to use some kubernetes volume plugin with internal provisioner like glusterfs or cephfs.</p>
<p><a href="https://kubernetes.io/docs/concepts/storage/storage-classes/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/storage/storage-classes/</a></p>
