Skip to content

Commit

Permalink
Merge pull request #776 from k8up-io/doc-restore-nonroot
Browse files Browse the repository at this point in the history
Document options for restoring as non-root user
  • Loading branch information
ccremer authored Dec 9, 2022
2 parents a77270b + 89d11ac commit 6070243
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/modules/ROOT/pages/how-tos/restore.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,22 @@ spec:
key: password
----

=== Restore to PVC as non-root user

For some storage volumes it may be necessary to adjust permissions as non-root user, otherwise the restore could fail due to "permission denied" errors.
If you encounter such a situation, try setting the following security context in the `Restore` spec:

[source,yaml]
----
apiVersion: k8up.io/v1
kind: Restore
...
spec:
podSecurityContext:
fsGroup: 65532
fsGroupChangePolicy: OnRootMismatch
----

== Manual restore via Restic

To manually restore you’ll need:
Expand Down

0 comments on commit 6070243

Please sign in to comment.