Skip to main content
Version: v1.4



Node-resource-manager is a component used to manage local resources in an OpenYurt cluster, user can dynamically configure local resources on hosts in a cluster by modifying a ConfigMap resource.

Node-resource-manager can initialize an existing block device or persistent memory device on the host into the following two local storage devices:

  • An LVM created based on a block device or persistent memory device
  • QuotaPath created on a block device or persistent memory device

Any changes to ConfigMap will be treated as changes to local resources on woker nodes in the cluster. For data security reasons, the plug-in will not delete any local resources

At the same time, with csi component, local storage devices can be used quickly and easily in Openyurt cluster.


This component consists of two main parts, one is the Node-resource-Topo ConfigMap defined in the kube-system namespace in the cluster, One is the Node-Resource-manager Daemonset, which is deployed under the Kube-system namespace in the cluster. The Node-resource-manager on each Node produces and manages user-defined local resources by mounting node-resource-Topo ConfigMap.



Create Configmap

Create a ConfigMap in a cluster. This section shows a generic ConfigMap configuration. For details, see

apiVersion: v1
kind: ConfigMap
  name: node-resource-topo
  namespace: kube-system
  volumegroup: |-
    - name: volumegroup1
      operator: In
      value: cn-zhangjiakou.
        type: device
        - /dev/vdb
        - /dev/vdc
  quotapath: |-
    - name: /mnt/path1
      operator: In
      value: cn-beijing.
        type: device
        options: prjquota
        fstype: ext4
        - /dev/vdb

The previous configuration provides the following functions

  • In the test cluster, we used two pieces of equipment : /dev/VDB & / dev/VDC to create an LVM volumegroup on the worker node: "cn - zhangjiakou. ". Devices here can add paths that do not exist, because the plug-in will automatically ignore this path during the node initialisation .
  • Meanwhile, we format the block device "/dev/vdb" to prjquota format on worker node "cn-beijing.", and mount it to path "/mnt/path1", and then subdirectories created under this path can set the maximum quota for each directory. Devices here can also add paths that do not exist, the component will automatically select the first existing block device for formatting and binding.

Installation of node-resource-manager

kubectl apply -f

Best practices of Edge local storage