Coder Social home page Coder Social logo

kube-bareos's Introduction

Running Bareos Filedaemon in a Kubernetes POD

This is an example project to show that you can run a Bareos Filedaemon as a Sidecar in a Kubernetes deployment to do logical backup and restore of the application you have deployed. The example will deploy a Wordpress blog with a MySQL database backend.

While this repository is meant as a reference to see how this can be achieved, we provide steps to reproduce the setup. However, this is by no means ready to be used in production.

Theory of operation

You will have two deployments: one for the MySQL database and one for the Wordpress blog. The POD for Wordpress will have a sidecar container that runs the Bareos Filedaemon. That sidecar is configured to have access to the same persistent volume as the Wordpress container, so it can backup and restore the volume's contents. The sidecar container will also have the MySQL database credentials configured so it can access the MySQL database for backup and restore.

Bareos Filedaemon container image

In the directory container-image you'll find a Dockerfile to build a container image that will run bareos-fd.

The image can be customized using environment variables at deployment time. This will configure the bareos filedaemon and the mysql client in the resulting container.

Kubernetes Deployment

The directory k8s is a kubernetes kustomization directory that you can use to deploy the application with its bareos-fd sidecar. Before deploying you will need to change DIR_ADDRESS in wordpress.yaml to point to your director.

Bareos Director configuration

In the directory bareos-dir.d you will find example configuration for your director to back up and restore the Wordpress blog.

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.