redhat-rhem
A helm chart for Red Hat Edge Manager
About this chart
redhat-rhem
A helm chart for Red Hat Edge Manager
Homepage: https://red.ht/rhem
Prerequisites
Pod Security Standards
The flightctl-imagebuilder-worker component requires elevated privileges to build OS images using osbuild/bootc. It needs:
- Privileged container access
- Host device access (
/dev,/sys,/lib/modules) - Capabilities:
SYS_ADMIN,MKNOD,SYS_CHROOT,SETFCAP
The flightctl-delta-worker component runs oci-delta to generate OS and application image deltas. The container must run as root and add SYS_ADMIN. A restricted policy assigns a non-root uid, and delta generation then fails while creating the delta.
If your namespace enforces the "restricted" or "baseline" Pod Security Standard, you will see warnings during deployment. To suppress these warnings, configure the namespace labels:
kubectl label namespace <namespace> \
pod-security.kubernetes.io/enforce=privileged \
pod-security.kubernetes.io/warn=privileged \
pod-security.kubernetes.io/audit=privileged
On OpenShift clusters, the chart automatically creates a security context constraint (SCC) for the flightctl-imagebuilder-worker and flightctl-delta-worker service accounts.
For additional ImageBuilder Worker configuration options (custom RPM repositories, RHEL entitlement certificates), see the ImageBuilder configuration documentation.
SBOM defaults (see imageBuilderWorker.sbom and imageBuilderWorker.serviceImages.syft in the parameters table): when serviceImages.syft.image is empty, the worker uses docker.io/anchore/syft:v1.44.0. Podman and bootc-image-builder use their own defaults when those image fields are empty.
If you don't need image building capabilities, you can disable the imagebuilder-worker:
imageBuilderWorker:
enabled: false
Installation
Install Chart
# Install with default values
helm install my-redhat-rhem oci://quay.io/flightctl/charts/redhat-rhem
# Install with custom values
helm install my-redhat-rhem oci://quay.io/flightctl/charts/redhat-rhem -f values.yaml
# Install for development environment
helm install my-redhat-rhem oci://quay.io/flightctl/charts/redhat-rhem -f values.dev.yaml
# Install for ACM (Advanced Cluster Management) integration
helm install my-redhat-rhem oci://quay.io/flightctl/charts/redhat-rhem -f values.acm.yaml
# Install in specific namespace
helm install my-redhat-rhem oci://quay.io/flightctl/charts/redhat-rhem --namespace flightctl --create-namespace
Install from the OpenShift Software Catalog
Prerequisites:
- You have access to an OpenShift Kubernetes cluster (4.19+) with cluster admin permissions.
Procedure:
-
In the OpenShift console with the Administrator view selected, navigate to Home > Projects, click Create Project, enter
flightctlas the project name, and click Create. -
Navigate to Ecosystem > Software Catalog. In the search bar below All Items, enter
flightcontrol, select the Flight Control tile, and click Create. -
Verify that the selected project is
flightctl. Optionally select a Flight Control version to install, then click Create. -
Navigate to Workloads > Pods and wait for the pods to reach
RunningorCompletedstate. -
Navigate to Networking > Routes and select the
flightctl-uiroute. -
Select the URL shown under Location to access the Flight Control UI with your current user account and credentials.
If you need to access the service using the flightctl CLI, select Copy login command to view the command to use.
Upgrade Chart
Redhat-Rhem uses Helm pre-upgrade hooks and a controlled sequence of steps to keep data consistent and minimize downtime:
- Scale down selected services — services listed in
upgradeHooks.scaleDown.deploymentsare scaled to 0 in order for a clean shutdown. - Migration dry-run — validates database migrations to catch issues early.
- Database migration (expand-only) — applies backward-compatible schema changes.
- Service update & restart — workloads are updated to the new spec and rolled out.
Example upgrade hooks configuration:
upgradeHooks:
scaleDown:
deployments:
- flightctl-api
- flightctl-worker
databaseMigrationDryRun: true # default true
Note: On fresh installs, migrations run as a regular Job (not a hook).
Basic upgrade command:
helm upgrade my-redhat-rhem oci://quay.io/flightctl/charts/redhat-rhem
Upgrade to a specific chart version:
helm upgrade \
--version <new-version> \
my-redhat-rhem oci://quay.io/flightctl/charts/redhat-rhem
Best Practices:
- Consider
--atomicso Helm waits and automatically rolls back if the upgrade fails. - Before major upgrades, back up the database and configuration to ensure a clean restore point.
- Preview the diff before upgrading with the Helm diff plugin.
Upgrade Notes (1.0 → 1.1):
- When the UI is deployed as a plugin to multicluster engine, the TLS secret was renamed from
flightctl-ui-serving-certtoflightctl-ui-server-tls. After upgrading, the old secret is orphaned. Once the UI pod is running successfully, you can safely delete it withkubectl delete secret flightctl-ui-serving-cert -n <namespace>.
Rollbacks
Use rollbacks to revert to a previously successful revision if an upgrade causes issues. Use helm history to identify the target revision, then roll back if needed.
Show release history and see failure reasons in the DESCRIPTION column:
$ helm history my-redhat-rhem
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 ... deployed redhat-rhem-x.y.z <appver> Install complete
2 ... failed redhat-rhem-x.y.z <appver> Upgrade "my-redhat-rhem" failed: context deadline exceeded
Roll back to the previous successful revision (#1) and wait until it's healthy:
$ helm rollback my-redhat-rhem 1 --wait
Rollback was a success! Happy Helming!
Verify that history reflects the rollback:
$ helm history my-redhat-rhem
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 ... superseded redhat-rhem-x.y.z <appver> Install complete
2 ... failed redhat-rhem-x.y.z <appver> Upgrade "my-redhat-rhem" failed: context deadline exceeded
3 ... deployed redhat-rhem-x.y.z <appver> Rollback to 1
Monitoring
Use these commands to inspect the current release state, values, and installed releases.
Show current release status and notes:
helm status my-redhat-rhem
Show user-supplied values (add --all to include chart defaults as well):
helm get values my-redhat-rhem
helm get values my-redhat-rhem --all
List releases and observe revision bump/status after an upgrade attempt:
$ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
my-redhat-rhem ... 1 ... deployed redhat-rhem-x.y.z <appver>
my-redhat-rhem ... 2 ... failed redhat-rhem-x.y.z <appver>
Uninstall Chart
helm uninstall my-redhat-rhem
Usage
After installation, redhat-rhem will be available in your cluster.
For more detailed configuration options, see the Values section below.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| alertExporter | object | {"enabled":true,"image":{"image":"registry.redhat.io/rhem/flightctl-alert-exporter-rhel9","pullPolicy":"","tag":""}} | Alert Exporter Configuration |
| alertExporter.enabled | bool | true | Enable alert exporter service |
| alertExporter.image.image | string | "registry.redhat.io/rhem/flightctl-alert-exporter-rhel9" | Alert exporter container image |
| alertExporter.image.pullPolicy | string | "" | Image pull policy for alert exporter container |
| alertExporter.image.tag | string | "" | Alert exporter image tag |
| alertmanager | object | {"additionalPVCLabels":null,"additionalRouteLabels":null,"enabled":true,"image":{"image":"registry.redhat.io/rhacm2/prometheus-alertmanager-rhel9","pullPolicy":"","tag":"v2.15.0-1"},"selector":{"matchLabels":{}},"volumeName":""} | Alertmanager Configuration |
| alertmanager.additionalPVCLabels | string | nil | Additional labels for Alert Manager PVCs. |
| alertmanager.additionalRouteLabels | string | nil | Additional labels for Alert Manager routes. |
| alertmanager.enabled | bool | true | Enable Alertmanager for alert handling |
| alertmanager.image.image | string | "registry.redhat.io/rhacm2/prometheus-alertmanager-rhel9" | Alertmanager container image |
| alertmanager.image.pullPolicy | string | "" | Image pull policy for Alertmanager container |
| alertmanager.image.tag | string | "v2.15.0-1" | Alertmanager image tag |
| alertmanager.selector.matchLabels | object | {} | Label selector for binding this PVC to a pre-provisioned PersistentVolume by matching labels on the PV. Same immutability caveat as volumeName applies. Leave empty to disable label-based selection. |
| alertmanager.volumeName | string | "" | Name of a specific pre-provisioned PersistentVolume to bind this PVC to. Only takes effect when the PVC is first created — changing this on an already-bound PVC will make helm upgrade fail, because Kubernetes forbids mutating volumeName after creation. Leave empty for normal (dynamic or best-fit static) binding. Note: the target PV's capacity must be >= the fixed 2Gi this PVC requests, or binding will fail. Setting this (or selector.matchLabels below) also makes the chart render storageClassName: "" on this PVC when global.storageClassName is left empty, so a cluster-default StorageClass can't get injected and mismatch the target PV. |
| alertmanagerProxy | object | {"enabled":true,"image":{"image":"registry.redhat.io/rhem/flightctl-alertmanager-proxy-rhel9","pullPolicy":"","tag":""}} | Alertmanager Proxy Configuration |
| alertmanagerProxy.enabled | bool | true | Enable Alertmanager proxy service |
| alertmanagerProxy.image.image | string | "registry.redhat.io/rhem/flightctl-alertmanager-proxy-rhel9" | Alertmanager proxy container image |
| alertmanagerProxy.image.pullPolicy | string | "" | Image pull policy for Alertmanager proxy container |
| alertmanagerProxy.image.tag | string | "" | Alertmanager proxy image tag |
| api | object | {"additionalPVCLabels":null,"additionalRouteLabels":null,"image":{"image":"registry.redhat.io/rhem/flightctl-api-rhel9","pullPolicy":"","tag":""},"rateLimit":{"authRequests":20,"authWindow":"1h","enabled":true,"requests":300,"trustedProxies":["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16"],"window":"1m"}} | API Server Configuration |
| api.additionalPVCLabels | string | nil | Additional labels for API PVCs. |
| api.additionalRouteLabels | string | nil | Additional labels for API routes. |
| api.image.image | string | "registry.redhat.io/rhem/flightctl-api-rhel9" | API server container image |
| api.image.pullPolicy | string | "" | Image pull policy for API server container |
| api.image.tag | string | "" | API server image tag (leave empty to use chart appVersion) |
| api.rateLimit.authRequests | int | 20 | Maximum authentication requests per auth window Auth-specific rate limiting |
| api.rateLimit.authWindow | string | "1h" | Time window for authentication rate limiting |
| api.rateLimit.enabled | bool | true | Enable or disable rate limiting |
| api.rateLimit.requests | int | 300 | Maximum requests per window for general API endpoints General API rate limiting |
| api.rateLimit.trustedProxies | list | ["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16"] | List of trusted proxy IP ranges that can set X-Forwarded-For headers Trusted proxies that can set X-Forwarded-For/X-Real-IP headers This should include your load balancer and UI proxy IPs |
| api.rateLimit.window | string | "1m" | Time window for rate limiting (e.g., "1m", "1h") |
| cliArtifacts | object | {"additionalRouteLabels":null,"enabled":true,"image":{"image":"registry.redhat.io/rhem/flightctl-cli-artifacts-rhel9","pullPolicy":"","tag":""}} | CLI Artifacts Configuration |
| cliArtifacts.additionalRouteLabels | string | nil | Additional labels for CLI Artifacts routes. |
| cliArtifacts.enabled | bool | true | Enable CLI artifacts service |
| cliArtifacts.image.image | string | "registry.redhat.io/rhem/flightctl-cli-artifacts-rhel9" | CLI artifacts container image |
| cliArtifacts.image.pullPolicy | string | "" | Image pull policy for CLI artifacts container |
| cliArtifacts.image.tag | string | "" | CLI artifacts image tag |
| clusterCli | object | {"image":{"image":"registry.redhat.io/openshift4/ose-cli-rhel9","pullPolicy":"","tag":"v4.20.0"}} | Cluster CLI Configuration |
| clusterCli.image.image | string | "registry.redhat.io/openshift4/ose-cli-rhel9" | Cluster CLI container image |
| clusterCli.image.pullPolicy | string | "" | Image pull policy for cluster CLI container |
| clusterCli.image.tag | string | "v4.20.0" | Cluster CLI image tag |
| db | object | `{"builtin":{"additionalPVCLabels":null,"applicationUserSecretName":"","fsGroup":"","image":{"image":"registry.redhat.io/rhel9/postgresql-16","pullPolicy":"","tag":"9.7-1766414426"},"masterUserSecretName":"","maxConnections":200,"migrationUserSecretName":"","resources":{"requests":{"cpu":"512m","memory":"512Mi"}},"selector":{"matchLabels":{}},"storage":{"size":"60Gi"},"volumeName":""},"externa |
Deploy redhat-rhem with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redhat-rhem on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartredhat-rhem is pinned at v1.4.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply