<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 30, 2016 at 4:07 AM, likun <span dir="ltr">&lt;<a href="mailto:kun.li@ucarinc.com" target="_blank">kun.li@ucarinc.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="ZH-CN" link="#0563C1" vlink="#954F72"><div class="m_-9218235515872559440WordSection1"><p class="MsoNormal"><span lang="EN-US">Anyone use glusterfs in kubernetes environment?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">We use coreos. As you know, from 1.4.3, coreos version kubernetes has included glusterfs-client debian package in hypercube image. So recently we moved our kubernetes to 1.5.1, and began to mount glusterfs from pod directly.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">But we can just mount the whole glusterfs volume, is there any way to use a small part of glusterfs volume</span><span style="font-family:宋体">?</span><span lang="EN-US">like a directory in the volume, and 10G limited through quota. Can PV and PVC do this ?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> </span></p></div></div></blockquote><div><br></div><div>You can possibly accomplish this by mounting the entire glusterfs volume into the container host and bind mounting different sub-directories of the volume in different containers. Gluster supports configuring quota on sub-directories. Note that data services like geo-replication, snapshots etc. cannot be configured for sub-directories.</div><div><br></div><div>Are your PVs  for read write once or read write many workloads? We are looking at adding read write once support with iSCSI in Gluster 3.10.<br></div><div><br></div><div>Regards,</div><div>Vijay</div><div><br></div><div><br></div></div></div></div>