💠OpenShift
StackState Self-hosted v4.5.x
Last updated
StackState Self-hosted v4.5.x
Last updated
This page describes StackState v4.5.x. The StackState 4.5 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.5 version range to upgrade to a more recent release.
The OpenShift integration is used to create a near real-time synchronization of topology and associated internal services from an OpenShift cluster to StackState. This StackPack allows monitoring of the following:
Workloads
Nodes, pods, containers and services
Configmaps, secrets and volumes
OpenShift is a StackState core integration.
The OpenShift integration collects topology data in an OpenShift cluster as well as metrics and events.
Data is retrieved by the deployed StackState Agents and then pushed to StackState via the Agent StackPack and the OpenShift StackPack.
In StackState:
Topology data is translated into components and relations.
Tags defined in OpenShift are added to components and relations in StackState.
Relevant metrics data is mapped to associated components and relations in StackState. All retrieved metrics data is stored and accessible within StackState.
Events are available in the StackState Events Perspective and listed in the details pane of the StackState UI.
The following prerequisites are required to install the OpenShift StackPack and deploy the StackState Agent and Cluster Agent:
An OpenShift Cluster must be up and running.
A recent version of Helm 3.
A user with permissions to create privileged pods, ClusterRoles, ClusterRoleBindings and SCCs:
ClusterRole and ClusterRoleBinding are needed to grant StackState Agents permissions to access the OpenShift API.
StackState Agents need to run in a privileged pod to be able to gather information on network connections and host information.
Install the OpenShift StackPack from the StackState UI StackPacks > Integrations screen. You will need to provide the following parameters:
OpenShift Cluster Name - A name to identify the cluster. This does not need to match the cluster name used in kubeconfig
, however, that is usually a good candidate for a unique name.
If the Agent StackPack is not already installed, this will be automatically installed together with the OpenShift StackPack. This is required to work with the StackState Agent, which will need to be deployed on each node in the OpenShift cluster.
For the OpenShift integration to retrieve topology, events and metrics data, you will need to have the following installed on your OpenShift cluster:
StackState Agent V2 on each node in the cluster
StackState Cluster Agent on one node
kube-state-metrics
➡️ Deploy StackState Agents and kube-state-metrics.
To integrate with other services, a separate instance of the StackState Agent should be deployed on a standalone VM. It is not currently possible to configure a StackState Agent deployed on an OpenShift cluster with checks that integrate with other services.
To check the status of the OpenShift integration, check that the StackState Cluster Agent (cluster-agent
) pod and all of the StackState Agent (cluster-agent-agent
) pods have status ready.
The OpenShift integration retrieves the following data:
The OpenShift integration retrieves all events from the OpenShift cluster. The table below shows which event category will be assigned to each event type in StackState:
StackState event category | OpenShift events | |
---|---|---|
Activities |
| |
Alerts |
| |
Changes |
| |
Others | All other events |
The OpenShift integration makes all metrics from the OpenShift cluster available in StackState. Relevant metrics are automatically mapped to the associated components.
All retrieved metrics can be browsed or added to a component as a telemetry stream. Select the data source StackState Metrics and type openshift
in the Select box to get a full list of all available metrics.
The OpenShift integration retrieves components and relations for the OpenShift cluster.
Components
The following OpenShift topology data is available in StackState as components:
Cluster | Ingress |
Namespace | Job |
Node | Persistent Volume |
Pod | ReplicaSet |
Container | Secret |
ConfigMap | Service |
CronJob | StatefulSet |
DaemonSet | Volume |
Deployment |
Relations
The following relations between components are retrieved:
Container → PersistentVolume, Volume
CronJob → Job
DaemonSet → Pod
Deployment → ReplicaSet
Job → Pod
Ingress → Service
Namespace → CronJob, DaemonSet, Deployment, Job, ReplicaSet, Service, StatefulSet
Node → Cluster relation
Pod → ConfigMap, Container, Deployment, Node, PersistentVolume, Secret, Volume
ReplicaSet → Pod
Service → ExternalService, Pod
StatefulSet → Pod
Direct communication between processes
Process → Process communication via OpenShift service
Process → Process communication via headless OpenShift service
The OpenShift integration does not retrieve any traces data.
All tags defined in OpenShift will be retrieved and added to the associated components and relations in StackState.
The StackState Agent talks to the kubelet and kube-state-metrics API.
The StackState Agent and Cluster Agent connect to the OpenShift API to retrieve cluster wide information and OpenShift events. The following API endpoints used:
Resource type | REST API endpoint |
---|---|
Metadata > ComponentStatus |
|
Metadata > ConfigMap |
|
Metadata > Event |
|
Metadata > Namespace |
|
Network > Endpoints |
|
Network > Ingress |
|
Network > Service |
|
Node > Node |
|
Security > Secret |
|
Storage > PersistentVolumeClaimSpec |
|
Storage > VolumeAttachment |
|
Workloads > CronJob |
|
Workloads > DaemonSet |
|
Workloads > Deployment |
|
Workloads > Job |
|
Workloads > PersistentVolume |
|
Workloads > Pod |
|
Workloads > ReplicaSet |
|
Workloads > StatefulSet |
|
| |
|
For further details, refer to the OpenShift API documentation (openshift.com).
A number of actions are added to StackState when the OpenShift StackPack is installed. They are available from the Actions section on the right of the screen when an OpenShift component is selected or from the component context menu, displayed when you hover over an OpenShift component in the Topology Perspective
Action | Available for component types | Description |
---|---|---|
Show configuration and storage | pods containers | Display the selected pod or container with its configmaps, secrets and volumes |
Show dependencies (deep) | deployment replicaset replicationcontroller statefulset daemonset job cronjob pod | Displays all dependencies (up to 6 levels deep) of the selected pod or workload. |
Show pods | deployment replicaset replicationcontroller statefulset daemonset job cronjob | Displays the pods for the selected workload. |
Show pods & services | namespace | Opens a view for the pods/services in the selected namespace |
Show services | namespace | Open a view for the service and ingress components in the selected namespace |
Show workloads | namespace | Show workloads in the selected namespace |
Details of installed actions can be found in the StackState UI Settings > Actions > Component Actions screen.
When the OpenShift integration is enabled, the following OpenShift views are available in StackState for each cluster:
OpenShift - Applications -
OpenShift - Infrastructure -
OpenShift - Namespaces -
OpenShift - Workload Controllers -
The code for the StackState Agent OpenShift check is open source and available on GitHub at:
Troubleshooting steps for any known issues can be found in the StackState support Knowledge base.
To uninstall the OpenShift StackPack, go to the StackState UI StackPacks > Integrations > OpenShift screen and click UNINSTALL. All OpenShift StackPack specific configuration will be removed from StackState.
To uninstall the StackState Cluster Agent and the StackState Agent from your OpenShift cluster, run a Helm uninstall:
OpenShift StackPack v3.7.9 (2021-11-30)
Bug Fix: Support nodes without instanceId
OpenShift StackPack v3.7.8 (2021-10-06)
Bug Fix: Fix metrics for generic events
OpenShift StackPack v3.7.7 (2021-08-20)
Improvement: Add description to Views
OpenShift StackPack v3.7.5 (2021-07-14)
Improvement: Documentation update
Improvement: Update of stackstate.url
for the installation documentation of the StackState Agent
OpenShift StackPack v3.7.4 (2021-05-11)
Bug Fix: Set aggregation methods for desired replicas streams to be compatible with insufficient replicas check
Bug Fix: Set aggregation method for not ready endpoints stream (on a service) to be compatible with endpoints check
OpenShift StackPack v3.7.3 (2021-04-29)
Bug Fix: Change dependency to latest version of k8s-common, as the previous release is broken.
OpenShift StackPack v3.7.2 (2021-04-29)
Improvement: Prevented readiness checks from firing pre-maturely by setting window from 10 seconds to 15 minutes for workloads, pods, and containers.
Improvement: Prevented readiness checks from firing pre-maturely by changing how service health is determined, and extended the evaluation window to 15 minutes.
OpenShift StackPack v3.7.1 (2021-04-12)
Improvement: Common bumped from 2.5.0 to 2.5.1
OpenShift StackPack v3.7.0 (2021-04-02)
Improvement: Enable auto grouping on generated views.
Improvement: Update documentation.
Improvement: Common bumped from 2.4.3 to 2.5.0
Improvement: StackState min version bumped to 4.3.0
OpenShift StackPack v3.6.0 (2021-03-08)
Feature: Namespaces are now a component in StackState with a namespaces view for each cluster
Feature: New component actions for quick navigation on workloads, pods and namespaces
Feature: Added a "Pod Scheduled" metric stream to pods
Feature: Secrets are now a component in StackState
Improvement: The "Desired vs Ready" checks on workloads now use the "Ready replicas" stream instead of the replicas stream.
Improvement: Use standard (blue) Kubernetes icons
Bug Fix: Fixed Kubernetes synchronization when a component had no labels but only tags
OpenShift StackPack v3.5.2 (2020-08-18)
Feature: Introduced the Release notes pop up for customer
OpenShift StackPack v3.5.1 (2020-08-10)
Feature: Introduced Kubernetes specific component identifiers
OpenShift StackPack v3.5.0 (2020-08-04)
Improvement: Deprecated stackpack specific layers and introduced a new common layer structure.
OpenShift StackPack v3.4.0 (2020-06-19)
Improvement: Set the stream priorities on all streams.