[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

OKD and GlusterFS.



Hello,

I created an GlusterFS volume and tried to mount it to a OKD (v. 3.11) pod. 
The folder is successfully mounted but when I try to write something on it I get an error message "Permission denied". 

Glusterfs volume has uid and gid = 501

On OKD I've created PV and PVC

# oc get pv
NAME                 CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS    CLAIM                 STORAGECLASS   REASON    AGE
glusterfc-volume-3   2Gi        RWX            Retain           Bound     201/gluster-claim-1                            3h
glusterfc-volume-4   2Gi        RWX            Retain           Bound     201/gluster-claim-2                            2h

# oc get pvc
NAME              STATUS    VOLUME               CAPACITY   ACCESS MODES   STORAGECLASS   AGE
gluster-claim-1   Bound     glusterfc-volume-3   2Gi        RWX                           3h
gluster-claim-2   Bound     glusterfc-volume-4   2Gi        RWX                           2h

and on Pod configuration i have:
[...]
volumes:
    [...]
    - name: volume-cevy5
      persistentVolumeClaim:
        claimName: gluster-claim-2
[...]
securityContext:
    fsGroup: 1000150000
    seLinuxOptions:
      level: 's0:c12,c9'
    supplementalGroups:
      - 501

Any idea where is the problem?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]