Reputation: 362
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.
Please suggest.
Upvotes: 0
Views: 127
Reputation: 44559
You could use local storage provisioner as discussed in this question Kubernetes: What is the best practice for create dynamic local volume to auto assign PVs for PVCs?
Compared to hostPath
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 PersistentVolume
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: myssd
provisioner: local
Check this discussion Unable to setup couchbase operator 1.2 with persistent volume on local storage class
Upvotes: 1