Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue setting folder S3 on etcd backups #499

Open
aldelsa opened this issue Nov 13, 2024 · 1 comment
Open

Issue setting folder S3 on etcd backups #499

aldelsa opened this issue Nov 13, 2024 · 1 comment

Comments

@aldelsa
Copy link

aldelsa commented Nov 13, 2024

Hi,
We are trying to configure the etcd backup using S3 bucket parameters in the RKE2ControlPlane manifest:

  etcd:
      backupConfig:
        retention: "10"
        scheduleCron: "*/3 * * * *"
        s3:
          bucket: backups-rancher
          endpoint: test-rancher.com
          folder: backup
          enforceSslVerify: true
          s3CredentialSecret:
            apiVersion: v1
            kind: Secret
            namespace: rke2test
            name: creds-etcd-backup

The problem is the next part of the code:

rke2ServerConfig.EtcdSnapshotDir = opts.ServerConfig.Etcd.BackupConfig.S3.Folder

If I use that s3 folder, I get "directory does not exist" message from rke2-server service because that folder does not exist on the machine for etcd backup, but it exists in my bucket.

The parameter folder should be independent from the EtcdSnapshotDir.

Thanks

@aldelsa
Copy link
Author

aldelsa commented Nov 13, 2024

I found this PR #278 @furkatgofurov7 but I don't understand the reason of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant