Giter VIP home page Giter VIP logo

drbd-flexvolume's Introduction

DRBD flexvolume plugin for Kubernetes

This project is deprecated, please refer to linstor-flexvolume

Building

Requires Go 1.8 or higher and a configured GOPATH

mkdir -p $GOPATH/src/github.com/linbit/

cd $GOPATH/src/github.com/linbit/

git clone https://github.com/linbit/drbd-flexvolume

cd drbd-flexvolume

go get ./...

make

This will compile a binary targeting the local machine's architecture and place it into the _build directory.

Installing

Place the generated binary named drbd under the following path on the kubelet and kube-controller-manager nodes:

/usr/libexec/kubernetes/kubelet-plugins/volume/exec/linbit~drbd/

After installation, restarting kubelet process is required on each node for Kubernetes versions older than 1.8.

Usage

Resources must be created before attachment with DRBD Manage or drbd-flex-provision before they are available for this plugin to use.

The kube-controller-manager and all kubelets eligible to run containers must be part of the same DRBD Manage cluster. Volumes will be attached to the kubelet across the network via the DRBD Transport protocol, so they do not require local storage.

Kubelet nodes names must match the output of uname -n exactly. If they do not, this may be overridden via the kubelet --hostname-override parameter

Please note that the Kubernetes PV name and the associated DRBD Manage resource name must match exactly in order for the volume to remain attached to the kubelet due to kubernetes/kubernetes#44737

example.yaml, located in the root of this project, contains an example configuration that attaches a resource named r0 to the container under the path /data. Note that that the PV name is also named r0.

drbd-flexvolume's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.