Giter Site home page Giter Site logo

szaydel / node-disk-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openebs-archive/node-disk-manager

0.0 1.0 0.0 45.56 MB

Kubernetes Storage Device Management

Home Page: https://docs.openebs.io

License: Apache License 2.0

Shell 1.76% Go 95.64% Makefile 1.30% Dockerfile 0.47% Mustache 0.83%

node-disk-manager's Introduction

node-disk-manager

Build Status Codacy Badge Go Report codecov Slack BCH compliance FOSSA Status CII Best Practices

node-disk-manager (NDM) aims to make it easy to manage the disks attached to the node. It treats disks as resources that need to be monitored and managed just like other resources like CPU, Memory and Network. It contains a daemon which runs on each node, detects attached disks and loads them as BlockDevice objects (custom resource) into Kubernetes.

While PVs are well suited for stateful workloads, the BlockDevice objects are aimed towards helping hyper-converged Storage Operators by providing abilities like:

  • Easy to access inventory of block devices available across the Kubernetes Cluster.
  • Predict failures on the blockdevices, to help with taking preventive actions.
  • Allow for dynamically attaching/detaching blockdevices to a Storage Pod, without requiring a restart.

NDM has 2 main components:

  • node-disk-manager daemonset, which runs on each node and is responsible for device detection.
  • node-disk-operator deployment, which acts as an inventory of block devices in the cluster.

and 2 optional components:

  • ndm-cluster-exporter deployment, which fetches block device object from etcd and exposes it as prometheus metrics.
  • ndm-node-exporter daemonset, which runs on each node, queries the disk for details like SMART and expose it as prometheus metrics.

The design of the project is covered under this design proposal

The feedback of users / organizations currently using OpenEBS can be found here

Project Status

Currently, the NDM project is in beta.

Usage

A detailed usage documentation is maintained in the wiki.

Minimum Supported version

K8S : 1.18+

Start Node Disk Manager

  • Edit ndm-operator.yaml to fit your environment: Set the namespace, serviceAccount, configure filters in the node-disk-manager-config-map.
  • Switch to Cluster Admin context and create the components with kubectl create -f ndm-operator.yaml.
  • This will install the daemon, operator and the exporters

Using kubectl to fetch BlockDevice Information

  • kubectl get blockdevices displays the blockdevices across the cluster, with NODENAME showing the node to which disk is attached, CLAIMSTATE showing whether the device is currently in use and STATE showing whether the device is connected to the node.
  • kubectl get blockdevices -o wide displays the blockdevice along with the path at which the device is attached on the node.
  • kubectl get blockdevices <blockdevice-cr-name> -o yaml displays all the details of the disk captured by ndm for given disk resource.

Building, Testing and Pushing Image

Before building the image locally, you need to setup your development environment. The detailed instructions for setting up development environment, building and testing are available here.

Contributing

OpenEBS welcomes your feedback and contributions in any form possible.

License

FOSSA Status

Inspiration

node-disk-manager's People

Contributors

akhilerm avatar kmova avatar z0marlin avatar realharshthakur avatar pawanpraka1 avatar satbirchhikara avatar shovanmaity avatar a4abhishek avatar niladrih avatar soniasingla avatar shubham14bajpai avatar bege13mot avatar asquare14 avatar rbo13 avatar rajasahil avatar liuminjian avatar ajeetrai7 avatar xunholy avatar moteesh avatar prateekpandey14 avatar abby3017 avatar rahulchheda avatar cospotato avatar pensu avatar prnvdixit avatar rafa-acioly avatar richardelling avatar kochurovro avatar rupeshiya avatar shindakun avatar

Watchers

 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.