GlusterFS on Kubernetes (Heketi)

Kubernetes Storage Class with GlusterFS Version 6

Each node of GlusterFS must install GlusterFS server. For storage just adds a physical disk to your node, such as “/dev/sdc” without any concern about creating a partition, pv, or vg just wipe out all data on disk. You should let Heketi manage our volume by heketi-client.

If your server is running on CentOS 7 follow this instruction.
yum install centos-release-gluster
yum install epel-release
yum install glusterfs-server
For Ubuntu :
sudo add-apt-repository ppa:gluster/glusterfs-6
sudo apt update
sudo apt install glusterfs-server

I recommend following Igor Cicimov to added Heketi topology and create a storage class of Kubernetes.

https://icicimov.github.io/blog/virtualization/Kubernetes-shared-storage-with-external-GlusterFS-backend/

Each node include master node of kubernetes must install the Glusterfs-client

CentOS: yum install glusterfs-fuse

Ubuntu: sudo apt install glusterfs-client

Caution: If your GlusterFS server has a different version from the client should update a newer version than the server version. (That should curse your kubernetes node cannot connect to PVC error throw about “type” not specified for volume)