View profile

Raft in Kubernetes and Swarm Pt. 3: Backup the Raft

Revue
 
Pt.1 and 2 covered the Raft algorithm and cluster design, and today I'll cover backing up your cluste
 

FasterOps: Improving Your Container DevOps Skills

September 17 · Issue #12 · View online
Commentary on tools and techniques I find interesting around Docker, Kubernetes, Cloud Native DevOps, and DevSecOps.

Pt.1 and 2 covered the Raft algorithm and cluster design, and today I’ll cover backing up your cluster database.

Annie The Raft from https://raft.github.io
Annie The Raft from https://raft.github.io
Backing Up Swarm
Since Swarm has a built-in Raft database (called Raft logs), this is cut and dry, you just need to backup everything in /var/lib/docker/swarm on a Manager node.
The negatives are that 1. That Manager’s Docker Engine should be stopped during file backups, which means you need to take steps to ensure the Swarm still has quorum while backups happen, and 2. There is no built-in way to automate this. You’ll need to create or find scripts/tools that do this outside a Docker container on a specific server, and then move those backups off-disk. Bummer.
Tips for the Backup and Restore of Docker Swarm
Administer and maintain a swarm of Docker Engines
Backing Up etcd For Kubernetes
Since etcd can be installed in all sorts of ways (hosted, in cluster containers, outside the cluster, or directly on hosts), this makes backups more complex and varied. The good news is Kubernetes has tools for making this easier.
Operating etcd clusters for Kubernetes
Using the etcd Backup Operator
Using CronJob's with the etcd Backup Operator
On The YouTube Show Last Week
What a fun show, talking about where Jenkins X, how it’s different from Jenkins (hint, it’s totally unrelated), and how to use it for proper Kubernetes GitOps (DevOps-style cluster updates using git).
Kubernetes GitOps with Jenkins X: DevOps and Docker Live Show (Ep 57)
Thanks, talk to ya next week,
–Bret
Weekly YouTube Live: bretfisher.com/youtube
Course Coupons: bretfisher.com/courses
Did you enjoy this issue?
If you don't want these updates anymore, please unsubscribe here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Powered by Revue
Bret Fisher, Virginia Beach, Virginia, USA