A system service to make backups of the etcd cluster on RancherOS
,/ \,
((__,-"""-,__))
`--)~ ~(--`
.-'( )`-,
`~~`d\ /b`~~`
| |
(6___6)
`---`
RancherOS ETCD Backup
You need to create a iam role and policy to attach on your aws ec2 instance.
s3:ListBucket
s3:PutObject
This module should be used with rancher 2.0 recurring snapshots
Add this cloud-init config on your EC2 user-data or in your rancher configuration file.
#cloud-config
rancher:
services:
etcd-backup:
image: chrisenytc/rancheros-etcd-backup:1.0.0
privileged: true
environment:
- S3_BUCKET=s3://chrisenytc-etcd-backup/
labels:
io.rancher.os.after: network
io.rancher.os.scope: system
io.rancher.os.createonly: 'false'
cron.schedule: "*/5 * * * *"
volumes:
- /opt/rke/etcd-snapshots:/opt/src
Bug reports and pull requests are welcome on GitHub at https://github.com/chrisenytc/rancheros-etcd-backup. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
- Fork it chrisenytc/rancheros-etcd-backup
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am "Add some feature"
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
If you have any problem or suggestion please open an issue here.
Check here.