<p>Hi there I followed this <a href="https://kubernetes.io/docs/tasks/run-application/run-replicated-stateful-application/" rel="nofollow noreferrer">tutorial</a> back in march and got it up and running. I have been refreshing on the area and was doing it again... but now it no longer works. Is there any changes that have occurred to kubernetes that has changed in the mean time that caused this issue?</p>
<p>Here is the error code in PVC:
<a href="https://i.stack.imgur.com/Laneo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Laneo.png" alt="Error code" /></a></p>
<p>Another <a href="https://stackoverflow.com/questions/43888338/kubernetes-hostpath-external-provisioner-pvc-pending">question</a> addresses this by pointing to another link, but this link isnt working any more!</p>
<p>I am running my kubernetes cluster on Minikube version v1.17.1</p>

EoinHanan
<p>Check your <code>kubectl client</code> version is compatible with the <code>minikube</code> version, in case needs, do upgrade the components. Also, check PV status on your system and and try defining the storage class, <code>storageClassName: standard</code> in your pv definition as below,</p>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
  name: postgresql-storage
spec:
  capacity:
    storage: 5Gi
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: Retain
  storageClassName: standard
  hostPath:
      path: /data/postgresql/
</code></pre>
