neshte / gluster-k8s-sidecar

Kubernetes sidecar for GlusterFS
MIT License
5 stars 3 forks source link

Glusterfs Kubernetes Cluster Sidecar

This project is as a PoC to setup a gluster cluster using Kubernetes. It should handle resizing of any type and be resilient to the various conditions both gluster and kubernetes can find themselves in.

How to use it

There is an article here explaining how to use this here: https://medium.com/@jaime_ecom/glusterfs-cluster-with-kubernetes-c09725d69900#.18m72xv4k

The docker image is hosted on docker hub and can be found here:
https://hub.docker.com/r/neshte/gluster-k8s-sidecar/

An example kubernetes replication controller can be found in the examples directory on github here:
https://github.com/neshte/gluster-k8s-sidecar

There you will also find some helper scripts to test out creating the cluster and resizing it.

Settings

Debugging

If you follow the instructions on article: https://medium.com/@jaime_ecom/glusterfs-cluster-with-kubernetes-c09725d69900#.18m72xv4k

On the sidecar of the first node you create, you will see your logs for debugging

Still to do

Inspired in

This sidecar is inspired in a sidecar for mongo on kubernetes https://github.com/leportlabs/mongo-k8s-sidecar