StackState Self-hosted v4.6.x
This page describes StackState version 4.6.
The StackState Helm chart exposes an
ingresssection in its values. By default ingress is disabled.
We give an example here for how to configure an nginx-ingress controller with TLS encryption enabled. Setting up the controller itself and the certificates is beyond the scope of this document.
To configure the ingress for StackState create a file
ingress_values.yamlwith contents like below, however replace MY_DOMAIN with your own domain (that is linked with your ingress controller) and set the correct name for the
tls-secret. Consult the documentation of your ingress controller and ensure the correct annotations are set. All of the fields below are optional, for example if no TLS is going to be used that section can be omitted.
- host: stackstate.MY_DOMAIN
The one thing standing out in this file is the nginx annotation to increase the allowed
50m(larger than any expected request). By default Nginx allows only body sizes of maximum
1m. StackState agents and other data providers can sometimes send much larger requests. Therefore regardless if you're using Nginx or another ingress controller you want make sure that the allowed body size is large enough.
Now include this
ingress_values.yamlfile when running the helm command to deploy StackState:
helm upgrade \
--namespace "stackstate" \
--values "ingress_values.yaml" \
--values "values.yaml" \