Git Product home page Git Product logo

velero-plugin's Introduction

velero-plugin

HPE plugin for Velero. To take snapshots of HPE volumes through velero you need to install and configure the HPE Snapshotter plugin.

Installation

Refer to https://velero.io/docs/v1.1.0/get-started/ for installing velero.

1. Create VolumeSnapshotLocation CRD for HPE Snapshotter

apiVersion: velero.io/v1
kind: VolumeSnapshotLocation
metadata:
  name: hpe-csp
  namespace: velero
spec:
  provider: hpe.com/snapshotter
  config: {
       "secret-name": "nimble-secret",
       "secret-namespace": "kube-system"
  }

2. Deploy a Container Service Provider service

In order for the snapshotter to perform snapshots, it needs to communicate with a CSP. Currently only HPE Nimble Storage provides a CSP and the rest of the installation assumes Nimble.

Create a CSP secret that maps to a Nimble array management IP address and "Power User" (or Administrator):

apiVersion: v1
kind: Secret
metadata:
  name: nimble-secret
  namespace: kube-system
stringData:
  serviceName: nimble-csp-svc
  servicePort: "8080"
  backend: 192.168.1.1
  username: admin
data:
  # echo -n admin | base64
  password: YWRtaW4=

Deploy the CSP (it will be deployed in the velero namespace on the cluster)

kubectl create -f https://raw.githubusercontent.com/hpe-storage/velero-plugin/master/nimble-csp.yaml

3. Install Velero HPE blockstore plugin

velero plugin add hpestorage/velero-hpe-blockstore:beta --image-pull-policy Always

Backup

Everytime a velero backup is taken and include PVCs, it will also take HPE Nimble Storage snapshots of your volumes.

velero backup create default-ns-hpe-backup --include-namespaces=default --snapshot-volumes --volume-snapshot-locations hpe-csp

Backup request "default-ns-hpe-backup" submitted successfully.
Run `velero backup describe default-ns-hpe-backup` for more details.

Listing Backup

velero backup get
NAME                      STATUS                       CREATED                         EXPIRES   STORAGE LOCATION   SELECTOR
default-ns-hpe-backup     Completed                    2019-08-16 11:49:33 -0700 PDT   17d       default            <none>
default-ns-hpe-backup2    Completed                    2019-08-19 10:09:41 -0700 PDT   20d       default            <none>
default-ns-hpe-backup3    Completed                    2019-08-16 12:13:50 -0700 PDT   17d       default            <none>

Restore

Restoring from velero backup, a HPE Nimble Storage clone volume will be created from the snapshot and bound to the restored PVC. To restore from the backup created above you can run the following command:

velero restore create --from-backup default-ns-hpe-backup

Restore request "default-ns-hpe-backup-20190828193501" submitted successfully.

velero-plugin's People

Contributors

raffis avatar raunakkumar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

velero-plugin's Issues

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.