Environment Variables
Values and runtime configuration can be set via environment variables. The variables will be parsed once at startup of the downscaler.
Values
The Values will be applied to the environment scope.
Valid Values
Runtime Configuration
info
The runtime configuration set by the cli arguments will take precedence over their respective environment variables if they are both set.
Valid Config Vars
Usage
Bare Variables
.env
DEFAULT_UPTIME: "Mon-Fri 08:00-20:00 Pacific/Fiji"
EXCLUDE_DEPLOYMENTS: "my-deployment, example-.*"
Via Helm Chart values.yaml
values.yaml
# ...
configMap:
name: go-kube-downscaler
extraConfig: |
DEFAULT_DOWNTIME: "Mon-Fri 20:00-08:00 Asia/Tokyo, Sat-Sun 00:00-24:00 Asia/Tokyo"
EXCLUDE_NAMESPACES: "my-namespace, example-.*"
# ...