Installation¶
This page provides comprehensive instructions for installing the Qubership Monitoring Operator into Kubernetes or OpenShift environments. The documentation covers prerequisites, supported versions, installation procedures, and post-installation verification.
Supported Versions¶
Kubernetes 1.25 or later is required by the managed Prometheus and VictoriaMetrics operators. OpenShift 4.12 is the minimum equivalent release.
| Platform | Minimum version |
|---|---|
| Kubernetes | 1.25 |
| OpenShift | 4.12 |
Cloud Platform Support:
| Cloud Platform | Support |
|---|---|
| AWS Elastic Kubernetes Service (EKS) | ✓ |
| Azure Kubernetes Service (AKS) | ✓ |
| Google Kubernetes Engine (GKE) | ✓ |
| On-premise Kubernetes >= 1.25 | ✓ |
| On-premise OpenShift >= 4.12 | ✓ |
Prerequisites¶
Before You Begin¶
Ensure you have the following prerequisites in place before installation:
- Kubernetes 1.25+ or OpenShift 4.12+ cluster
kubectloroccompatible with the target cluster- Helm 3.0+
- Pre-created namespace for installation
- Appropriate permissions for deployment
- Sufficient hardware resources
Important considerations:
- Apply CRDs manually if you disable automated CRD upgrade
- For OpenShift deployments, ensure the namespace has an empty node-selector
For detailed prerequisites, see Prerequisites.
For the security constraints of etcd certificate discovery, see Etcd certificate synchronization security constraints.
For the hardening controls and limitations of optional monitoring workloads, see Optional component security hardening.
The operator applies the same baseline to the workloads it reconciles from PlatformMonitoring: runAsNonRoot: true,
the RuntimeDefault seccomp profile, allowPrivilegeEscalation: false, readOnlyRootFilesystem: true, all Linux
capabilities dropped, and a size-limited emptyDir named monitoring-tmp mounted at /tmp. A user-defined volume
mounted at /tmp through a component's volumes, volumeMounts, or containers fields is kept as is and replaces the
emptyDir mount for that container. The volume name monitoring-tmp is reserved; a user-defined volume with that name
is rejected. Settings that the baseline cannot override (privileged: true, capabilities.add, runAsUser: 0, and
runAsNonRoot: false) are rejected at chart rendering and, for values passed through the custom resource, by the
operator: the component is not updated, and the reason is recorded in the PlatformMonitoring status conditions.
The operator detects OpenShift through the security.openshift.io/v1 SecurityContextConstraints API and caches the
result. If that discovery fails before a result is cached, the affected component is not updated during that
reconciliation, the failure is recorded in the status conditions, and reconciliation is retried.
On OpenShift the operator omits numeric IDs unless a component's securityContext sets them, so the restricted-v2
SCC assigns IDs from the namespace range. Explicitly configured non-root IDs stay admissible for VictoriaMetrics
components: the operator-managed victoriametrics-operator SCC uses the MustRunAsNonRoot UID strategy and
RunAsAny for fsGroup and supplemental groups. Set runAsUser together with runAsGroup or fsGroup on
OpenShift: a pod that carries only a group ID falls back to that SCC without a UID, and the VictoriaMetrics images do
not declare a numeric user, so the kubelet rejects the pod.
Permissions¶
The monitoring operator requires cluster-level permissions to create and manage the following components:
- prometheus
- prometheus-operator
- grafana-operator
- kube-state-metrics
- node-exporter
- cert-exporter
- Various exporters and monitors
A ClusterRole must be granted to the monitoring-operator service account with all required permissions. For restricted operator reconciliation and administrator-owned RBAC exceptions, see Restricted Mode Installation.
Hardware Requirements¶
The monitoring stack requires resources depending on the components installed and the scale of your environment.
Minimal recommended hardware for an average system:
| Resource | Requirement |
|---|---|
| CPU | 3000m |
| RAM | 3000Mi |
| Storage | 10GB |
For detailed hardware sizing information, refer to the Prerequisites guide.
The monitoring operator requests 16Mi of local ephemeral storage and has a 128Mi limit by default. The request
reserves space for scheduling; the limit covers the container's local ephemeral storage, including its logs. These
values are starting points, not measured peaks. Check usage under your workload and adjust
monitoringOperator.ephemeralStorage.request and monitoringOperator.ephemeralStorage.limit if needed. Explicit
ephemeral-storage entries in monitoringOperator.resources take precedence.
Default Deployment¶
By default, the following components are installed:
| Component | Description |
|---|---|
| alertmanager | Alert management and routing |
| grafana | Visualization and dashboards |
| grafana-operator | Grafana management |
| kube-state-metrics | Kubernetes metrics collection |
| monitoring-operator | Core operator (always installed) |
| node-exporter | Node-level metrics |
| victoriametrics | Time series database |
| vm-operator | VictoriaMetrics management |
Default configuration includes:
- Ephemeral storage for VictoriaMetrics and Grafana
- 24-hour metric retention
- Multiple pre-configured dashboards and alerts
- No ingress configured by default
- No integrations enabled
Grafana gets server.root_url only when you configure a Grafana ingress host, and Generic OAuth settings only when
you set the auth endpoint URLs. Values in grafana.config override these operator defaults. For details, see the
Grafana configuration section.
For detailed information about components, see Components.
Installation Steps¶
Using Helm¶
- Add the Helm repository:
-
Create values file (values.yaml) with your customizations or use the default values.
-
Install the chart:
helm install monitoring qubership-monitoring/monitoring-operator \
--namespace monitoring \
--create-namespace \
--values values.yaml
- Upgrading the chart:
helm upgrade monitoring qubership-monitoring/monitoring-operator \
--namespace monitoring \
--values values.yaml
- Uninstalling the chart:
CRD Management
Helm does not update or remove CRDs. For upgrades involving CRD changes, manual updates are required.
Apply the complete CRD bundle, or synchronize the dedicated
qubership-monitoring-crds chart, before upgrading the monitoring operator.
Verify that the installed PlatformMonitoring CRD contains
status.observedGeneration, then upgrade the operator chart. An older
structural schema prunes this status field and prevents the controller from
identifying an already observed resource generation.
For Argo CD deployments, complete the CRD application synchronization before synchronizing the monitoring operator application.
Post-Installation Verification¶
After installing the monitoring operator, verify that all components are running correctly:
- Check pod status:
- Verify the operator deployment:
- Check Custom Resources:
- Access Grafana dashboard:
If ingress is configured, access via URL. Otherwise, use port-forwarding:
Default login for Grafana is typically admin/admin unless configured otherwise.
For complete verification procedures, see Post-Deploy Checks.
What's Next¶
After successful installation, you can:
- Configure component-specific settings, see Components
- Set up persistent storage, see Storage Configuration
- Configure monitoring parameters, see Configuration
- Configure authentication and security, see Authentication
- Set up alerting rules, see Troubleshooting
- Review maintenance procedures, see Maintenance