-
|
For one of volumes I am trying to restore I am facing a permission issue. I already tried to change the security context of the ReplicationDestination to set the fsGroup, runAsGroup and runAsUser to 0 without Here is the replicationDestination object Any idea how to solve this? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Found a solution by making the mover privileged using the annotation |
Beta Was this translation helpful? Give feedback.
-
|
@aacebedo if you don't want to run in privileged, you can also take a look at the docs here: https://volsync.readthedocs.io/en/stable/usage/permissionmodel.html If you don't specify a moverSecurityContext, this means your mover pods will run as whatever is the default in your cluster, which may be uid 0 - in this case, restic will assume it has permission to do things like chown to change the UID/GIDs to match what was on the original source side (and fail if this doesn't work). When in fact when you're not in privileged mode you don't actually have permission. Normally you would want to use a moverSecurityContext that matches what you'll give your application, so the files would be written with privileges that match what your app will use. |
Beta Was this translation helpful? Give feedback.
Found a solution by making the mover privileged using the annotation