Increase timeout on the velero backup hook
We have a backup hook on velero to take the database backup into an sql file on the PVC and then we take a snapshot of the PVC. There is a default timeout of 30s on this backup hook. And some sites take more than 30s and therefore the backups are failing.
Error log from velero
time="2021-08-11T03:04:46Z" level=error msg="Error executing hook" backup=openshift-cern-drupal/staff-association-staff-association-20210811030047 error="timed out after 30s" error.file="/go/src/github.com/vmware-tanzu/velero/pkg/podexec/pod_command_executor.go:168" error.function="github.com/vmware-tanzu/velero/pkg/podexec.(*defaultPodCommandExecutor).ExecutePodCommand" hookPhase=pre hookSource=annotation hookType=exec logSource="internal/hook/item_hook_handler.go:206" name=staff-association-5657d56565-pq5ks namespace=staff-association resource=pods
To fix this, we need to add another annotation pre.hook.backup.velero.io/timeout
to increase the default timeout from 30s to mayb 60s or more.