The module lifecycle stage: Generally available version

The module has requirements for installation

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 descheduler 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 descheduler
  • Using ModuleConfig descheduler.

    Set spec.enabled to true or false in ModuleConfig descheduler (create it if necessary).

    Example of a manifest to enable module descheduler:

    apiVersion: deckhouse.io/v1alpha1
    kind: ModuleConfig
    metadata:
      name: descheduler
    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 descheduler 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 descheduler on the “YAML” tab in the module settings window (“System” → “System Management” → “Deckhouse” → “Modules”, open the module descheduler) 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 descheduler (for more details on configuring Deckhouse Platform, see the documentation) by executing the following command:

    d8 k edit mc descheduler

    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 descheduler 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 descheduler:

    apiVersion: deckhouse.io/v1alpha1
    kind: ModuleConfig
    metadata:
      name: descheduler
    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.78 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:

    Delete settings.

Parameters

Schema version: 2

  • settings
    object
    • settings.deschedulingInterval
      string

      Interval between pod redistribution runs.

      • Frequent: Runs every 5 minutes. Pods are redistributed faster.
      • Moderate: Runs every 15 minutes.
      • Rare: Runs every 30 minutes. Pods are redistributed less often.

      Default: Moderate

      Allowed values: Frequent, Moderate, Rare

    • settings.logLevel
      string

      Descheduler logging level.

      Each level includes the messages of the less detailed levels. Some informational messages and warnings, such as startup messages, are logged at any level.

      • Error: Errors only.
      • Warning: Configuration warnings, evicted pods, and descheduling cycle results.
      • Info: The progress of each descheduling cycle, such as the nodes being processed.
      • Debug: Detailed information on eviction decisions, such as why a pod was not evicted, and every request to the Kubernetes API. Produces a very large volume of logs. Use it for troubleshooting only.

      Default: Warning

      Allowed values: Debug, Info, Warning, Error