Skip to content

A system service to make backups of the etcd cluster on RancherOS

License

Notifications You must be signed in to change notification settings

chrisenytc/rancheros-etcd-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RancherOS ETCD Backup

A system service to make backups of the etcd cluster on RancherOS

           ,/         \,
          ((__,-"""-,__))
           `--)~   ~(--`
          .-'(       )`-,
          `~~`d\   /b`~~`
              |     |
              (6___6)
               `---`

     RancherOS ETCD Backup

Maintenance License GitHub forks GitHub stars GitHub issues Docker Pulls Docker Stars

Twitter Follow Twitter URL

Supported tags and respective Dockerfile links

Requirements

You need to create a iam role and policy to attach on your aws ec2 instance.

Required permissions

  • s3:ListBucket
  • s3:PutObject

This module should be used with rancher 2.0 recurring snapshots

How to use

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

Contributing

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.

  1. Fork it chrisenytc/rancheros-etcd-backup
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am "Add some feature")
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Support

If you have any problem or suggestion please open an issue here.

License

Check here.

About

A system service to make backups of the etcd cluster on RancherOS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published