The module is enabled by default in the following bundles: Default, Managed. The module is disabled by default in the Minimal bundle.

How to explicitly enable the module…

Note that the configOverrides parameter of the InitConfiguration resource is used when installing Deckhouse, not ModuleConfig.

Set the namespaceConfiguratorEnabled: true or namespaceConfiguratorEnabled: false in the configOverrides parameter to explicitly enable or disable the module when installing Deckhouse.

Use the namespaceConfigurator section of the configOverrides parameter to configure the module when installing Deckhouse.

Set the spec.enabled module parameter to true or false to explicitly enable or disable the module.

Example of enabling the namespace-configurator module:

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

Example of disabling the namespace-configurator module:

apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
  name: namespace-configurator
spec:
  enabled: false

The module is configured using the ModuleConfig custom resource named namespace-configurator (learn more about setting up Deckhouse…).

Example of the ModuleConfig/namespace-configurator resource for configuring the module:

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

Parameters

Schema version: 1

  • configurationsarray of objects
    • configurations.annotationsobject

      A list of annotations in the key: "value" format.

      Example:

      annotations:
        example: 'true'
      
    • configurations.excludeNamesarray of strings

      A list of namespace patterns to exclude.

      Default: []

      Example:

      excludeNames:
      - infra-test
      
    • configurations.includeNamesarray of strings

      Required value

      A list of namespace patterns to include.

      Default: []

      Example:

      includeNames:
      - prod-.*
      - infra-.*
      
    • configurations.labelsobject

      A list of labels in the key: "value" format.

      Example:

      labels:
        istio-injection: 'true'