stardog-union / helm-charts

Stardog Helm Charts
Apache License 2.0
9 stars 12 forks source link

Stardog cannot write on the persistent volume #75

Open fungiboletus opened 2 years ago

fungiboletus commented 2 years ago

When using the default configuration, stardog does not have the permission to write ont he persistent volume. This is because the persistent volume is owned by root and stardog doesn't use run with the root user by default.

STARDOG_HOME '/var/opt/stardog/' is not writeable by the current user

A workaround is to run stardog as root:

  securityContext:
    enabled: true
    runAsUser: 0
    runAsGroup: 0
    fsGroup: 0

A better solution would be to use the busybox init container, not only when the cluster is enabled, to change the permissions before stardog starts.

pcompieta commented 1 year ago

If it helps, this problem was gone the moment we tried "storage type : azurefile" required by AKS for #74