Getting Started
Prerequisite to install
- Kubernetes 1.9.7+ is installed
- Make sure you run the following
kubectl
command with cluster admin context. The installation will involve create a new Service Account assigned to NDM for managing the Disk CRD - NDM pods run with privileged context that require access to the /dev, if you are running on CentOS - verify that selinux is off or the pods are granted sufficient privileges.
Install and Setup
wget https://raw.githubusercontent.com/openebs/node-disk-manager/v0.1.0/ndm-operator.yaml
#Customize the operator as per your cluster requirements. For example
#update the filter configuration with device types patters that you want excluded from discovering.
#update DaemonSet with nodeSelector information to limit NDM to specific nodes
#update namespace - installed in `default` by default.
kubectl apply -f ndm-operator.yaml
For more details, refer to User guide.
Supported Features
- Discover devices attached to node and add them as Disk CR.
- Support for filters to exclude some disks from being added like OS Disk, Loopback devices, etc.,
- Dynamically detect disk addition/removal
- Identify if the Disk (like GPD) has moved from one node to another.
Detailed CHANGELOG is maintained here.