You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
Saving preferences when configured against a default longhorn (https://longhorn.io) volume returns a 'permission denied' error.
This is because by default the mounted pvc is root, and the container permissions are 'hajimari' (uid: 100, gid: 101). I've fixed this by adding this to the deployment securityContext:
Just another data point for this issue -- I'm using a Helm chart in Terraform, so these are the equivalent modified settings:
resource"helm_release""hajimari" {
repository="https://hajimari.io"chart="hajimari"# rest of the chart setup omittedset {
name ="podSecurityContext.fsGroup"
value =101
}
set {
name ="podSecurityContext.fsGroupChangePolicy"
value ="OnRootMismatch"
}
}
Describe the bug
A clear and concise description of what the bug is.
Saving preferences when configured against a default longhorn (https://longhorn.io) volume returns a 'permission denied' error.
This is because by default the mounted pvc is root, and the container permissions are 'hajimari' (uid: 100, gid: 101). I've fixed this by adding this to the deployment securityContext:
securityContext:
fsGroup: 101
fsGroupChangePolicy: "OnRootMismatch"
You might want to considering adding something like this to the helm chart for the future.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: