Skip to main content
Version: Next 🚧

excludedNamespaces

The excludedNamespaces value is a list of namespaces that will be excluded from being downscaled by the GoKubeDownscaler.

info

When excludedNamespaces is empty, the chart defaults to excluding kube-system and the release namespace (the namespace where the chart is installed). When running the binary standalone (outside the chart), the built-in defaults are kube-system and kube-downscaler.

Explicit default in values.yaml:

excludedNamespaces:
- kube-downscaler
- kube-system

All workloads in any of the given namespaces will not be scaled.

Example

So adding a namespace like this:

excludedNamespaces:
- kube-downscaler
- kube-system
- namespace1

Will result in all workloads in the namespaces kube-downscaler, kube-system and namespace1 not being scaled down under any circumstance.

note

Setting excludedNamespaces: [] does not clear the exclusion list. The chart substitutes kube-system and the release namespace as defaults via coalesce. To truly exclude nothing, set a regex that cannot match any namespace name, such as ["$^"].

For more information please see the documentation on the configuration.