PyratLabs / ansible-role-k3s

Ansible role for installing k3s as either a standalone server or HA cluster.
BSD 3-Clause "New" or "Revised" License
640 stars 135 forks source link

s3 backup #146

Closed morriq closed 3 years ago

morriq commented 3 years ago

Hello, k3s has support for s3 backups: https://rancher.com/docs/k3s/latest/en/backup-restore/#s3-compatible-api-support

I can use it via:

curl -sfL https://get.k3s.io | sh -s -  --etcd-s3 --etcd-s3-region=eu-central-1 --etcd-s3-bucket=xx --etcd-s3-access-key=XXXX --etcd-s3-secret-key=XXX --etcd-snapshot-schedule-cron='0 */6 * * *'

maybe it would be nice to have it in ansible?

xanmanning commented 3 years ago

This role already supports it, just add the options to k3s_server.

What the role doesn't support is to fail when you try to use these options on an earlier version of K3s.