diff --git a/site/content/docs/main/restore-hooks.md b/site/content/docs/main/restore-hooks.md index 48eb8c1d6..0ec36c5d7 100644 --- a/site/content/docs/main/restore-hooks.md +++ b/site/content/docs/main/restore-hooks.md @@ -11,6 +11,10 @@ Velero supports Restore Hooks, custom actions that can be executed during or aft ## InitContainer Restore Hooks Use an `InitContainer` hook to add init containers into a pod before it's restored. You can use these init containers to run any setup needed for the pod to resume running from its backed-up state. +The InitContainer added by the restore hook will be the first init container in the `podSpec` of the restored pod. +In the case where the pod had volumes backed up using restic, then, the restore hook InitContainer will be added after the `restic-wait` InitContainer. + +NOTE: This ordering can be altered by any mutating webhooks that may be installed in the cluster. There are two ways to specify `InitContainer` restore hooks: 1. Specifying restore hooks in annotations diff --git a/site/content/docs/v1.5/restore-hooks.md b/site/content/docs/v1.5/restore-hooks.md index 48eb8c1d6..0ec36c5d7 100644 --- a/site/content/docs/v1.5/restore-hooks.md +++ b/site/content/docs/v1.5/restore-hooks.md @@ -11,6 +11,10 @@ Velero supports Restore Hooks, custom actions that can be executed during or aft ## InitContainer Restore Hooks Use an `InitContainer` hook to add init containers into a pod before it's restored. You can use these init containers to run any setup needed for the pod to resume running from its backed-up state. +The InitContainer added by the restore hook will be the first init container in the `podSpec` of the restored pod. +In the case where the pod had volumes backed up using restic, then, the restore hook InitContainer will be added after the `restic-wait` InitContainer. + +NOTE: This ordering can be altered by any mutating webhooks that may be installed in the cluster. There are two ways to specify `InitContainer` restore hooks: 1. Specifying restore hooks in annotations