vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.76k stars 1.41k forks source link

Error: secret "velero" not found #8291

Open aaadipop opened 1 month ago

aaadipop commented 1 month ago

What steps did you take and what happened: I'm trying to install the latest helm version, 7.2.1 with the following changed values from default:

credentials:
  # Whether a secret should be used. Set to false if, for examples:
  # - using kube2iam or kiam to provide AWS IAM credentials instead of providing the key file. (AWS only)
  # - using workload identity instead of providing the key file. (Azure/GCP only)
  useSecret: false
  # Name of the secret to create if `useSecret` is true and `existingSecret` is empty
  name:
  # Name of a pre-existing secret (if any) in the Velero namespace
  # that should be used to get IAM account credentials. Optional.
  existingSecret:
  # Data to be stored in the Velero secret, if `useSecret` is true and `existingSecret` is empty.
.....
serviceAccount:
  server:
    create: true
    name: velero-server
.....
podAnnotations:
   iam.amazonaws.com/role: ${role_arn}

but I got: Error: secret "velero" not found and a CreateContainerConfigError status

What did you expect to happen: Don't try to mount a secret and use the provided role arn from pod annotation

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

If you are using earlier versions:
Please provide the output of the following commands (Pasting long output into a GitHub gist or other pastebin is fine.)

Anything else you would like to add:

Environment:

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.

sanchit-verma commented 3 weeks ago

@aaadipop what velero version did you encountered the issue with? I am using v1.14.1 and not seeing any issues as such while installing velero via helm. Also can you please elaborate when did you encounter the error i.e, while installation?