Available in:  Open/CE, SE, SE+, Ultimate/EE

Included in extensions:  Advanced Storage, Core Storage

The module lifecycle stage: Generally available version

The module has requirements for installation

The module is guaranteed to work only with stock kernels that are shipped with the supported distributions.

The module may work with other kernels or distributions, but its stable operation and availability of all features is not guaranteed.

How to explicitly enable or disable the module…

You may explicitly enable or disable the module in one of the following ways:

  • Via Deckhouse web UI. In the “System” → “System Management” → “Deckhouse” → “Modules” section, open the sds-node-configurator module and enable (or disable) the “Module enabled” toggle. Save changes.

    Example:

    Module enable/disable interface
  • Via Deckhouse CLI (d8).

    Use the d8 system module enable command for enabling, or d8 system module disable command for disabling the module (you need Deckhouse CLI (d8), configured to work with the cluster).

    Example of enabling the module:

    d8 system module enable sds-node-configurator
  • Using ModuleConfig sds-node-configurator.

    Set spec.enabled to true or false in ModuleConfig sds-node-configurator (create it if necessary).

    Example of a manifest to enable module sds-node-configurator:

    apiVersion: deckhouse.io/v1alpha1
    kind: ModuleConfig
    metadata:
      name: sds-node-configurator
    spec:
      enabled: true

How to configure the module…

You can configure the module in one of the following ways:

  • Via Deckhouse web UI.

    In the “System” → “System Management” → “Deckhouse” → “Modules” section, open the sds-node-configurator module and enable the “Advanced Settings” toggle. Fill in the required fields in the “Configuration” tab or specify the module settings in YAML format on the “YAML” tab, without the top-level settings key. Save the changes.

    Example:

    Module settings interface

    You can also edit the ModuleConfig object sds-node-configurator on the “YAML” tab in the module settings window (“System” → “System Management” → “Deckhouse” → “Modules”, open the module sds-node-configurator) by specifying the schema version in the spec.version parameter and the necessary module parameters in the spec.settings section.

  • Via Deckhouse CLI (d8) (requires Deckhouse CLI (d8) configured to work with the cluster).

    Edit the existing ModuleConfig sds-node-configurator (for more details on configuring Deckhouse Platform, see the documentation) by executing the following command:

    d8 k edit mc sds-node-configurator

    Make the necessary changes in the spec.settings section. If necessary, specify the schema version in the spec.version parameter. Save the changes.

    You can also create a manifest file for ModuleConfig sds-node-configurator using the example below. Fill in the spec.settings section with the required module parameters. If necessary, specify the schema version in the spec.version parameter.

    Apply the manifest using the following command (indicate the manifest file name):

    d8 k apply -f <FILENAME>

    Example of a manifest for ModuleConfig sds-node-configurator:

    apiVersion: deckhouse.io/v1alpha1
    kind: ModuleConfig
    metadata:
      name: sds-node-configurator
    spec:
      version: 2
      enabled: true
      settings: # Module parameters from the "Parameters" section below.

How to change the module release channel…

To change the module release channel, follow the steps in How do I change the release channel for a module?.

Requirements

To the Deckhouse Platform version: 1.72 and above.

Conversions

The module is configured using the ModuleConfig resource, the schema of which contains a version number. When you apply an old version of the ModuleConfig schema in a cluster, automatic transformations are performed. To manually update the ModuleConfig schema version, the following steps must be completed sequentially for each version:

  • Updates from version 1 to 2:

    Need to remove the .enableThinProvisioning parameter.

Parameters

Schema version: 2

  • settings
    object
    • settings.disableDs
      boolean
      Disable sds-node-configurator DaemonSet.

      Default: false

    • settings.enableNetlinkBlockDeviceDiscovery
      boolean
      Use netlink/sysfs instead of lsblk as the data source for block device discovery on the agent. When disabled, the agent discovers block devices via lsblk.

      Default: false

    • settings.fileDevicesDirectory
      string

      Base directory on each node under which the agent is allowed to create backing files for file-backed LVM devices (spec.fileDevices).

      Every spec.fileDevices[].directory must be this directory or a subdirectory of it; the agent rejects backing files outside this subtree to prevent an arbitrary host path (for example /etc or /var/lib/kubelet) from being filled up. Override it to point at a dedicated data disk mounted on the node when the default location does not have enough space — the default shares a filesystem with /var/lib/kubelet and /var/lib/containerd on a standard node layout.

      The previous default, /opt/deckhouse/sds/file-devices, is accepted in addition to whatever is configured here. spec.fileDevices[].directory is immutable, so entries created before the module’s node tree moved keep naming it and cannot be edited; they go on working where they are.

      The filesystem root (/) is not accepted: it would make every absolute path a valid subdirectory and disable the restriction entirely.

      Default: /var/lib/deckhouse/sds/file-devices

      Pattern: ^/[^/]+(/[^/]+)*$

    • settings.fileDevicesMinFreeSpacePercent
      integer

      Share of the backing-file filesystem, in percent, that the agent keeps free when creating or growing a file-backed LVM device (spec.fileDevices).

      Backing files are preallocated, and by default they live on the node’s root filesystem. Allocating down to the last free byte is what causes a node-level outage rather than a mere provisioning error: kubelet starts evicting pods at nodefs.available<10%, long before the filesystem is actually full. The default of 15% matches kubelet’s stricter imagefs.available threshold and leaves a margin above the nodefs one.

      An entry that does not fit within this limit is not provisioned and is reported on the LVMVolumeGroup’s VGConfigurationApplied condition; the Volume Group itself keeps working.

      Lower it only when fileDevicesDirectory points at a dedicated disk that nothing else on the node depends on. 0 disables the reserve entirely.

      Default: 15

      Allowed values: 0 <= X <= 90

    • settings.logLevel
      string
      Module application log level.

      Default: INFO

      Allowed values: ERROR, WARN, INFO, DEBUG, TRACE

    • settings.missingBlockDeviceRetentionHours
      integer

      How long, in hours, a BlockDevice resource whose device has disappeared from the node is kept before the agent deletes it.

      A BlockDevice that is not consumable (typically one already used as an LVM Physical Volume) is not deleted when its device disappears: it gets the Missing condition instead, Unknown at first and True once the device has been absent for 10 minutes. On a node where LUNs are mapped and unmapped dynamically (a virtualization hypervisor, a node attaching disks for virtual machines) every such device would otherwise leave a resource behind forever.

      The retention is counted from the moment Missing became True. A resource is deleted only if no LVMVolumeGroup lists it in status.nodes and its status.lvmVolumeGroupName does not name an existing LVMVolumeGroup, so a Physical Volume lost from under a live Volume Group stays visible. If the device returns later, the agent creates the resource again.

      The same retention applies to the BlockDevices of a node that no agent runs on: a node deleted from the cluster, or one that lost the labels the agent is placed by. No agent is left there to scan the devices, so the controller marks all of that node’s BlockDevices Missing (reason NodeNotFound or AgentNotRunning) and deletes them under the same rules. If an agent starts on the node again, it clears the condition from the devices it finds.

      0 disables the deletion: the resources are kept until removed manually.

      Default: 24

      Allowed values: 0 <= X <= 8760

    • settings.missingNodeGracePeriodMinutes
      integer

      How long, in minutes, a node has to be gone from the cluster before the controller removes the agent’s finalizer from that node’s LVMVolumeGroup, LVMLogicalVolume and LVMLogicalVolumeSnapshot resources that are being deleted.

      Only the agent of a node removes its finalizer, after it has cleaned up on the node. Once the Node object is deleted no agent is left there, and those resources would stay in Terminating forever. The controller removes the finalizer for it, and only the agent’s: a resource that still carries a finalizer of another controller (for example, of the CSI driver that uses the volume) waits until that one is removed, and an LVMVolumeGroup waits until no LVMLogicalVolume or LVMLogicalVolumeSnapshot is left on it. Nothing on the node’s disks is touched.

      The period is counted from the moment the controller first found the node gone, recorded in the storage.deckhouse.io/node-missing-since annotation of the node’s LVMVolumeGroups. A node that is merely NotReady, or whose agent is not running, is still in the cluster and does not count as gone.

      An LVMVolumeGroup nobody asked to delete is never deleted automatically: the Volume Group on the disks outlives the node.

      0 disables the removal: the resources stay until their finalizer is removed manually.

      Default: 10

      Allowed values: 0 <= X <= 10080