Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

GlusterFS Support #500

Open
FreekingDean opened this issue May 28, 2020 · 7 comments
Open

GlusterFS Support #500

FreekingDean opened this issue May 28, 2020 · 7 comments
Labels

Comments

@FreekingDean
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I have an existing GlusterFS storage cluster I'd like to mount using the native kubernetes tooling.

Describe the solution you'd like
GlusterFS volume driver support.

Describe alternatives you've considered
Looking at SMB/CFIS & NFS mounts. But I think mounting using glusters native storage driver would be better?

Additional context
Add any other context or screenshots about the feature request here.

@FreekingDean FreekingDean added the kind/feature A new feature label May 28, 2020
@FreekingDean
Copy link
Contributor Author

Here is the example I am following: https://github.com/kubernetes/examples/tree/master/volumes/glusterfs

Heres my actual code Im applying to a k3os cluster

apiVersion: v1
kind: Service
metadata:
  name: glusterfs-cluster
spec:
  ports:
  - port: 1
---
apiVersion: v1
kind: Endpoints
metadata:
  name: glusterfs-cluster
subsets:
- addresses:
  - ip: [node1]
  ports:
  - port: 1
- addresses:
  - ip: [node2]
  ports:
  - port: 1
- addresses:
  - ip: [node3]
  ports:
  - port: 1
---
apiVersion: v1
kind: Pod
metadata:
  name: glusterfs
spec:
  containers:
  - name: glusterfs
    image: nginx
    volumeMounts:
    - mountPath: "/mnt/glusterfs"
      name: glusterfsvol
  volumes:
  - name: glusterfsvol
    glusterfs:
      endpoints: glusterfs-cluster
      path: kube_vol
      readOnly: true

This is the error I see from kubectl describe pod glusterfs

failed to get Plugin from volumeSpec for volume "glusterfsvol" err=no volume plugin matched

@FreekingDean
Copy link
Contributor Author

FreekingDean commented May 29, 2020

After doing some digging, it looks like this may not be possible on alpine (right now): gluster/glusterfs#268

@ChristophDietrich
Copy link

ChristophDietrich commented Jun 11, 2020

Run into the same issue, any ideas for a solutions on this topic?
Will donate also for this feature to have GlusterFS Support.

@FreekingDean
Copy link
Contributor Author

After further investigation it looks like k3s doesn't support GlusterFS https://github.com/rancher/k3s/issues?q=is%3Aissue+is%3Aopen+gluster I ended up just using NFS :(

@ChristophDietrich
Copy link

I now use as GlusterFS cluster and export the volumes with NFS, but have all needed things of gluster:

https://www.server-world.info/en/note?os=Ubuntu_18.04&p=glusterfs&f=8

@dweomer dweomer added area/storage kind/enhancement A feature improvement and removed kind/enhancement A feature improvement labels Jun 15, 2020
@schmitch
Copy link

btw. glusterfs for k8s is more or less dead. glusterfs-kubernetes is archved and heketi is maintenance only mode. You should look into kadalu which builds upon glusterfs.

@FlexibleToast
Copy link

GlusterFS for k8s is not dead, it has come back as kadalu. Kadalu is made by the Gluster developers and is very active.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants