GithubHelp home page GithubHelp logo

powerhome / scheduled-volume-snapshotter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryaneorth/k8s-scheduled-volume-snapshotter

0.0 2.0 0.0 43 KB

Kubernetes operator for automatically creating volume snapshots

License: Apache License 2.0

Dockerfile 2.06% Python 89.38% Mustache 8.56%

scheduled-volume-snapshotter's Introduction

CI

Kubernetes Scheduled Volume Snapshotter

Overview

The goal of this repository is to build upon the Kubernetes CSI's VolumeSnapshot custom resource by allowing users to automatically snapshot their persistent volumes on a schedule they define. The funtionality provided by this tool is something the Kubernetes Storage Special Interest Group has on their roadmap, but has yet to be implemented.

Prerequisites

You will need to have the VolumeSnapshot custom resource definition installed along with one or more CSI drivers. For more information about VolumeSnapshots in Kubernetes and the Kubernetes Container Storage Interface, see here.

The Scheduled Volume Snapshotter will work with both v1alpha1 (Kubernetes versions 1.12 - 1.16) and v1beta1 (Kubernetes versions >= 1.17) versions of the VolumeSnapshot custom resource.

Installation

The easiest way to deploy this operator is using the provided Helm chart:

helm upgrade --install scheduled-volume-snapshotter \
	https://github.com/ryaneorth/scheduled-volume-snapshotter/releases/download/v0.5/helm-chart.tgz

Scheduling snapshots

Once the Helm chart is installed, you can schedule snapshots of existing persistent volumes by creating a ScheduledVolumeSnapshot custom resource. Here is an example:

apiVersion: k8s.ryanorth.io/v1beta1
kind: ScheduledVolumeSnapshot
metadata:
  name: my-scheduled-snapshot
  namespace: foo
spec:
  snapshotClassName: ebs
  persistentVolumeClaimName: some-existing-pvc
  snapshotFrequency: 1
  snapshotRetention: 3
  snapshotLabels:
    firstLabel: someLabelValue
    secondLabel: anotherLabelValue

See the ScheduledVolumeSnapshot custom resource definition for further details.

scheduled-volume-snapshotter's People

Contributors

ryaneorth avatar guilhermeoki avatar djtaylor avatar moumoutaru avatar

Watchers

James Cloos avatar  avatar

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.