<p>I have a kubernetes cluster bootstrapped with kubeadm. I want to run stateful applications on it but dont want to use hostpath. Is there any way to run stateful applications without using cloud storage(like EBS, Azure Disk etc) and hostPath? I saw a few articles about setting up glusterFS server and then use it, but haven't got it running.</p>
<p>Please suggest.</p>

Dean Winchester
<p>You could use <a href="https://github.com/kubernetes-sigs/sig-storage-local-static-provisioner" rel="nofollow noreferrer">local storage provisioner</a> as discussed in this question  <a href="https://stackoverflow.com/questions/62739026/kubernetes-what-is-the-best-practice-for-create-dynamic-local-volume-to-auto-as/62740063#62740063">Kubernetes: What is the best practice for create dynamic local volume to auto assign PVs for PVCs?</a></p>
<p>Compared to <code>hostPath</code> volumes, local volumes can be used in a durable and portable manner without manually scheduling Pods to nodes, as the system is aware of the volume's node constraints by looking at the node affinity on the <code>PersistentVolume</code></p>
<pre><code>apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
 name: myssd
provisioner: local
</code></pre>
<p>Check this discussion <a href="https://stackoverflow.com/questions/62888429/unable-to-setup-couchbase-operator-1-2-with-persistent-volume-on-local-storage-c">Unable to setup couchbase operator 1.2 with persistent volume on local storage class</a></p>
