Skip to content

Velero 1.16 Fails to Restore in Workerless Clusters #9251

@nweisenauer-sap

Description

@nweisenauer-sap

What steps did you take and what happened:

We use velero to backup custom resources on a workerless kubernetes cluster (does not contain "Deployment" or "Pod" resources). Velero itself runs on another cluster with worker nodes and targets the workerless cluster for backups. Restoring the backups worked perfectly fine until Velero 1.16, which introduced a change in the PodVolumeRestoreAction. Now running this:

velero restore create --from-backup xxx --exclude-resources pods

results in the following error:

time="2025-09-11T08:53:54Z" level=error msg="Velero restore error: rpc error: code = Unknown desc = no matches for kind \"Deployment\" in version \"apps/v1\"" logSource="pkg/controller/restore_controller.go:602" restore=velero/xxx

Origin of the error:

https://github.com/vmware-tanzu/velero/blob/main/pkg/restore/actions/pod_volume_restore_action.go#L64

What did you expect to happen:

Restore runs fine.

The following information will help us better understand what's going on:

If you are using velero v1.7.0+:
Please use velero debug --backup <backupname> --restore <restorename> to generate the support bundle, and attach to this issue, more options please refer to velero debug --help

-> does not work because of similar reason
fails on workerless cluster with
velero debug --backup xxx --restore yyy An error occurred: failed to check velero deployment: no matches for kind "Deployment" in version "apps/v1"
fails on regular cluster with
velero debug --backup xxx --restore yyy An error occurred: no matches for kind "Backup" in version "velero.io/v1"

Environment:

  • Velero version (use velero version):
  • Client:
    Version: v1.16.2
    Git commit: -
    Server:
    Version: v1.16.2
  • Velero features (use velero client config get features):
  • features:
  • Kubernetes version (use kubectl version):
  • Client Version: v1.34.1
    Kustomize Version: v5.7.1
    Server Version: v1.33.3

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.

  • 👍 for "I would like to see this bug fixed as soon as possible"
  • 👎 for "There are more important bugs to focus on right now"

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions