Comment on page
Install from custom image registry
StackState Self-hosted v5.0.x
This page describes StackState version 5.0.
This page describes how to use a custom image registry to install StackState, the StackState Agent, Cluster Agent and kube-state-metrics. The required images are first copied and then the helm chart can then be configured to pull images using the custom registry and tag.
Pulling the images from the different image registries can take some time when pods are started, either when the application starts for the first time or when it is being scaled to a new node. If one of those registries is not accessible for some reason, the pods won't start.
To address this issue, you can copy all the images to a single registry close to your Kubernetes cluster, and configure the Helm chart to pull the images from that registry:
- 1.Set up a registry close to your Kubernetes cluster.
- 2.Use the relevant script to copy all the images used by the Helm chart to the new registry:
- StackState: stackstate/installation/copy_images.sh (github.com) to copy all the images used by the Helm chart to the new registry
- For example:
./installation/copy_images.sh -d 57413481473.dkr.ecr.eu-west-1.amazonaws.com- The script will detect when an ECR registry is used and automatically create the required repositories. Most other registries will automatically create repositories when the first image is pushed to it.
- The script has a dry-run option that can be activated with the
-t
flag. This will show the images that will be copied without actually copying them, for example:$ ./installation/copy_images.sh -d 57413481473.dkr.ecr.eu-west-1.amazonaws.com -tCopying justwatch/elasticsearch_exporter:1.1.0 to 57413481473.dkr.ecr.eu-west-1.amazonaws.com/justwatch/elasticsearch_exporter:1.1.0 (dry-run)Copying quay.io/stackstate/stackgraph-console:3.6.14 to 57413481473.dkr.ecr.eu-west-1.amazonaws.com/stackstate/stackgraph-console:3.6.14 (dry-run)Copying quay.io/stackstate/stackstate-server-stable:4.2.2 to 57413481473.dkr.ecr.eu-west-1.amazonaws.com/stackstate/stackstate-server-stable:4.2.2 (dry-run)Copying quay.io/stackstate/wait:1.0.0 to 57413481473.dkr.ecr.eu-west-1.amazonaws.com/stackstate/wait:1.0.0 (dry-run)Copying quay.io/stackstate/stackstate-server-stable:4.2.2 to 57413481473.dkr.ecr.eu-west-1.amazonaws.com/stackstate/stackstate-server-stable:4.2.2 (dry-run) - Additional optional flags can be used when running the script:
-c
specify a different chart to use.-r
specify a different repository to use.
- 3.Edit the
values.yaml
file and add the following:- global.imageRegistry - the registry to use.
- global.imagePullSecrets and pull-secret object - optional. The authentication details required for the
global.imageRegistry
. - elasticsearch.prometheus-elasticsearch-exporter.image.repository - the image used by the prometheus-elasticsearch-exporter sub-chart. This is required as it cannot be configured with the setting
global.imageRegistry
global:imageRegistry: 57413481473.dkr.ecr.eu-west-1.amazonaws.com## to specify authentication details for the global.imageRegistry## add the sections below.# imagePullSecrets:# - stackstate-pull-secret# pull-secret:# enabled: true# fullNameOverride: stackstate-pull-secret# credentials:# - registry: 57413481473.dkr.ecr.eu-west-1.amazonaws.com# username: johndoe# password: my_secret-p@ssw0rdelasticsearch:prometheus-elasticsearch-exporter:image:repository: 57413481473.dkr.ecr.eu-west-1.amazonaws.com/justwatch/elasticsearch_exporter
The images listed below are used in StackState v5.0.0:
- quay.io/stackstate/container-tools:1.1.3
- quay.io/stackstate/elasticsearch:7.17.2-sts.20220425.0743
- quay.io/stackstate/envoy-alpine:v1.19.1-sts.20211207.0748
- quay.io/stackstate/hadoop:2.10.1-java11-5-20220503082249
- quay.io/stackstate/hbase-master:4.6.7
- quay.io/stackstate/hbase-regionserver:4.6.7
- quay.io/stackstate/jmx-exporter:0.15.0-focal-20220316-r138.20220405.1513
- quay.io/stackstate/kafka:2.8.0-focal-20220316-r108.20220405.1511
- quay.io/stackstate/kafka:2.8.1-focal-20220316-r90.20220405.1508
- quay.io/stackstate/kafkaup-operator:0.0.1
- quay.io/stackstate/minio:2021.2.19-focal-20220316-r5.20220405.1533
- quay.io/stackstate/nginx-prometheus-exporter:0.9.0
- quay.io/stackstate/spotlight:5.0.0
- quay.io/stackstate/stackstate-correlate-stable:5.0.0
- quay.io/stackstate/stackstate-kafka-to-es-stable:5.0.0
- quay.io/stackstate/stackstate-receiver-stable:5.0.0
- quay.io/stackstate/stackstate-server-stable:5.0.0
- quay.io/stackstate/stackstate-ui-stable:5.0.0
- quay.io/stackstate/tephra-server:4.6.7
- quay.io/stackstate/wait:1.0.6
- quay.io/stackstate/zookeeper:3.6.3-focal-20220316-r302.20220411.1232
The images listed below are used in StackState Agent v2.17.2:
- quay.io/stackstate/kube-state-metrics:2.3.0-focal-20220316-r61.20220418.2032
- quay.io/stackstate/stackstate-agent-2:2.17.2
- quay.io/stackstate/stackstate-cluster-agent:2.17.2
- quay.io/stackstate/stackstate-process-agent:4.0.7
Last modified 1yr ago