We've worked around it. There are issues relating to any sort of file-share mounting that relates to the uid/gid that each respective component is using. zookeeper pod is one example that prevented me from mounting a share on the K8s node and using hostpath provision for it.
Steve Sims
08/14/2023, 6:31 PM
However, all pods work fine on hostpath, as long as you don't try to mount it on a fileshare, as long as we modify the various place where the securityContext is specifying different uid's that don't resolve all of the permissions issues.
Steve Sims
08/14/2023, 6:32 PM
In the end, we worked around it by either altering the gid/uids, and not mounting. Just leaving on the hostpath. Create a cron job to back up every 15 minutes or so to the share
Steve Sims
08/14/2023, 6:33 PM
Strange thing about zookeeper was that even if you alter its securityContext to runas root.....it will still write some of its data to the volume as uid 1000