Override default configuration
A number of values can be set in the StackState Helm chart. For example, it is possible to customize the tolerations and nodeSelectors for each of the components. You can also add customized configuration and include environment variables

Custom configuration for StackState api

For the StackState api service, custom configuration can be dropped directly into the Helm chart. This is the advised way to override the default configuration that StackState ships with and is especially convenient for customizing authentication. Configuration set in this way will be available to the StackState configuration file in HOCON format.
For example, you can set a custom "forgot password link" for the StackState login page:
values.yaml
1
stackstate:
2
components:
3
api:
4
config: |
5
stackstate.api.authentication.forgotPasswordLink =
6
"https://www.stackstate.com/forgotPassword.html"
Copied!
Note that custom configuration set here will be overridden by environment variables.

Environment variables

The configuration for all of the StackState services (receiver, k2es-*, correlation and api) can be customized using environment variables. Environment variables are specified in the values.yaml file and can be either secret (such as passwords) or open (for normal values). To convert a configuration item to an environment variable name, replace . with _ and add the prefix CONFIG_FORCE_.
1
# configuration item
2
stackstate.api.authentication.forgotPasswordLink
3
4
# environment variable name
5
CONFIG_FORCE_stackstate_api_authentication_forgotPasswordLink
Copied!
For example, you can set a custom "forgot password link" for the StackState login page:
values.yaml
1
stackstate:
2
components:
3
api:
4
extraEnv:
5
# Use 'secret:' to add configuration that should be stored as a secret
6
open:
7
CONFIG_FORCE_stackstate_api_authentication_forgotPasswordLink:
8
"https://www.stackstate.com/forgotPassword.html"
Copied!
For the StackState api service, environment variables will override custom configuration set using config.
Last modified 2mo ago