Install StackState
Install StackState on Kubernetes
This page describes StackState version 4.3.
The StackState 4.3 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.3 version range to upgrade to a more recent release.
Before you start
Extra notes for installing on:
Kubernetes clusters with limited permissions: Read the required permissions.
OpenShift: Refer to the OpenShift installation instructions.
Before you start the installation of StackState:
Check that your Kubernetes environment meets the requirements
Check that you have the required permissions
Request access credentials to pull the StackState Docker images from StackState support.
Add the StackState helm repository to the local helm client:
Install StackState
Create namespace
Start by creating the namespace where you want to install StackState and deploy the secret in that namespace. In our walkthrough we will use the namespace stackstate
:
Generate values.yaml
values.yaml
The values.yaml
is required to deploy StackState with Helm. It contains your StackState license key, API key and other important information. The generate_values.sh
script in the installation directory of the Helm chart will guide you through generating the file.
Before you continue: If you didn't already, make sure you have the latest version of the Helm chart with helm repo update
.
You can run the generate_values.sh
script in two ways:
Interactive mode: When the script is run without any arguments, it will guide you through the required configuration items.
Non-interactive mode: Run the script with the flag
-n
to pass configuration on the command line, this is useful for scripting.
The script requires the following configuration items:
Configuration | Flag | Description |
---|---|---|
Base URL |
| The external URL for StackState that users and agents will use to connect. For example |
Username and password** |
| The username and password used by StackState to pull images from quay.io/stackstate repositories. |
License key |
| The StackState license key. |
Admin API password |
| The password for the admin API. Note that this API contains system maintenance functionality and should only be accessible by the maintainers of the StackState installation. This can be omitted from the command line, the script will prompt for it. |
Default password |
| The password for the default user ( |
Kubernetes cluster name |
| StackState will use this name to identify the cluster. In non-interactive mode, specifying |
The generated file is suitable for a production setup (i.e. redundant storage services). It is also possible to create smaller deployments for test setups, see development setup.
Store the values.yaml
file somewhere safe. You can reuse this file for upgrades, which will save time and (more importantly) will ensure that StackState continues to use the same API key. This is desirable as it means agents and other data providers for StackState will not need to be updated.
Deploy StackState with Helm
Use the generated values.yaml
file to deploy the latest StackState version to the stackstate
namespace with the following command:
After the install, the StackState release should be listed in the StackState namespace and all pods should be running:
Access the StackState UI
After StackState has been deployed you can check if all pods are up and running:
When all pods are up, you can enable a port-forward:
StackState will now be available in your browser at https://localhost:8080
. Log in with the username admin
and the default password provided in the values.yaml
file.
Next steps are
Configure ingress
Install a StackPack or two
Give your co-workers access.
Automatic Kubernetes support
StackState has built-in support for Kubernetes by means of the Kubernetes StackPack. To get started quickly, the StackState installation can automate installation of this StackPack and the required agent for the cluster that StackState itself will be installed on. This is not required and can always be done later from the StackPacks page of the StackState UI for StackState's cluster or any other Kuberenetes cluster.
The only required information is a name for the Kubernetes cluster that will distinguish it from the other Kubernetes clusters monitored by StackState. A good choice usually is the same name that is used in the kube context configuration. This will then automatically install the StackPack and install a Daemonset for the agent and a deployment for the so called cluster agent. For the full details, please read the Kubernetes StackPack page.
Last updated