Coder Social home page Coder Social logo

docker-etcd-backup's Introduction

Docker Image: ETCD Backup

Build Status

Cluster Backup process for ETCD v3

Cluster backup

A cluster backup is made with etcdctl backup which strips node information thus requiring a cluster rebuild. This backup is saved as a tar file in the /tmp directory by default. If S3_PATH is specified it will be uploaded to S3 and encrypted with the KMS key that you have specified using the KMS_ID variable.

Configurable options

The following environment variables can be passed in to configure etcd backups for your environment:

ENVIRONMENT VARIABLE DESCRIPTION REQUIRED DEFAULT VALUE
BACKUP_PATH Set the directory to copy the etcd backup to N /tmp
ETCDCTL_CACERT Verify the ETCD certificate using this CA bundle N /srv/kubernetes/ca.crt
ETCDCTL_CERT TLS certificate file for ETCD N /srv/kubernetes/etcd.pem
ETCDCTL_ENDPOINT ETCD endpoint N https://localhost:2379
ETCDCTL_KEY TLS key file for ETCD N /srv/kubernetes/etcd-key.pem
S3_AWS_ENDPOINT Custom S3 endpoint URL N NULL
S3_CA_BUNDLE The CA bundle for the S3 endpoint N NULL
S3_KMS_ID A KMS ID to use for encrypting the backups in S3 N NULL
S3_NO_SSL_VERIFY Skip TLS verify for the S3 endpoint N false
S3_PATH Provide the S3 bucket path to copy the backup to, e.g. s3://my-bucket
If unset, the backup is left in BACKUP_PATH
N NULL

Restore process

  1. Stop ETCD everywhere
  2. See: https://etcd.io/docs/current/op-guide/recovery/

docker-etcd-backup's People

Contributors

jaykeshur avatar jim5252 avatar joseph-irving avatar kashifsaadat avatar lewismarshall avatar tasharnvb avatar vinn946 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-etcd-backup's Issues

Allow dynamic backup facility

Before a cluster upgrade, we want to be able to take a backup of etcd. Maybe exec into container, touch a file and then etcd backup is taken would be good enough?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.