Giter VIP home page Giter VIP logo

kube-lvm-flexvolume's Introduction

kube-lvm-flexvolume

Enhanced version of LVM flexVolume driver for Kubernetes.

Description

lvm-flexvolume provides a LVM driver with Thin Provisioning support. It will allocate LV from a previously created VG/Thinpool and mount it for usage in a container.

Changes prior to Kubernetes version

  • can create LV if does not exist
  • support for thin provisioned logical volumes
  • support for optional mount options

Installation

  • Make sure kubelet is running with --enable-controller-attach-detach=false
  • Create the directory /usr/libexec/kubernetes/kubelet-plugins/volume/exec/sysoperator.pl~lvm
  • Install driver as /usr/libexec/kubernetes/kubelet-plugins/volume/exec/sysoperator.pl~lvm/lvm

Create a Kubernetes Pod such as:

cat examples/nginx.yaml | kubectl apply -f -

The driver will create a logical volume and the volume will also be mounted as /data inside the container.

Options

Following options are required:

  • volumeID - Name of logical volume.
  • size - Size to allocate for the new logical volume. Accepts any value supported by --size parameter of lvcreate.
  • volumegroup - Name of volume group.

Optional options may be passed:

  • thinpool - Name of thin pool.
  • mountoptions - Additional options passed to mount. (e.g. noatime)

kube-lvm-flexvolume's People

Contributors

dzolnierz avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

kube-lvm-flexvolume'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.