redhat-rhem

by joaquinito2051

Helm chartv1.4.1App 1.4.1

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:

  1. In the OpenShift console with the Administrator view selected, navigate to Home > Projects, click Create Project, enter flightctl as the project name, and click Create.

  2. Navigate to Ecosystem > Software Catalog. In the search bar below All Items, enter flightcontrol, select the Flight Control tile, and click Create.

  3. Verify that the selected project is flightctl. Optionally select a Flight Control version to install, then click Create.

  4. Navigate to Workloads > Pods and wait for the pods to reach Running or Completed state.

  5. Navigate to Networking > Routes and select the flightctl-ui route.

  6. 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:

  1. Scale down selected services — services listed in upgradeHooks.scaleDown.deployments are scaled to 0 in order for a clean shutdown.
  2. Migration dry-run — validates database migrations to catch issues early.
  3. Database migration (expand-only) — applies backward-compatible schema changes.
  4. 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 --atomic so 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-cert to flightctl-ui-server-tls. After upgrading, the old secret is orphaned. Once the UI pod is running successfully, you can safely delete it with kubectl 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

KeyTypeDefaultDescription
alertExporterobject{"enabled":true,"image":{"image":"registry.redhat.io/rhem/flightctl-alert-exporter-rhel9","pullPolicy":"","tag":""}}Alert Exporter Configuration
alertExporter.enabledbooltrueEnable alert exporter service
alertExporter.image.imagestring"registry.redhat.io/rhem/flightctl-alert-exporter-rhel9"Alert exporter container image
alertExporter.image.pullPolicystring""Image pull policy for alert exporter container
alertExporter.image.tagstring""Alert exporter image tag
alertmanagerobject{"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.additionalPVCLabelsstringnilAdditional labels for Alert Manager PVCs.
alertmanager.additionalRouteLabelsstringnilAdditional labels for Alert Manager routes.
alertmanager.enabledbooltrueEnable Alertmanager for alert handling
alertmanager.image.imagestring"registry.redhat.io/rhacm2/prometheus-alertmanager-rhel9"Alertmanager container image
alertmanager.image.pullPolicystring""Image pull policy for Alertmanager container
alertmanager.image.tagstring"v2.15.0-1"Alertmanager image tag
alertmanager.selector.matchLabelsobject{}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.volumeNamestring""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.
alertmanagerProxyobject{"enabled":true,"image":{"image":"registry.redhat.io/rhem/flightctl-alertmanager-proxy-rhel9","pullPolicy":"","tag":""}}Alertmanager Proxy Configuration
alertmanagerProxy.enabledbooltrueEnable Alertmanager proxy service
alertmanagerProxy.image.imagestring"registry.redhat.io/rhem/flightctl-alertmanager-proxy-rhel9"Alertmanager proxy container image
alertmanagerProxy.image.pullPolicystring""Image pull policy for Alertmanager proxy container
alertmanagerProxy.image.tagstring""Alertmanager proxy image tag
apiobject{"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.additionalPVCLabelsstringnilAdditional labels for API PVCs.
api.additionalRouteLabelsstringnilAdditional labels for API routes.
api.image.imagestring"registry.redhat.io/rhem/flightctl-api-rhel9"API server container image
api.image.pullPolicystring""Image pull policy for API server container
api.image.tagstring""API server image tag (leave empty to use chart appVersion)
api.rateLimit.authRequestsint20Maximum authentication requests per auth window Auth-specific rate limiting
api.rateLimit.authWindowstring"1h"Time window for authentication rate limiting
api.rateLimit.enabledbooltrueEnable or disable rate limiting
api.rateLimit.requestsint300Maximum requests per window for general API endpoints General API rate limiting
api.rateLimit.trustedProxieslist["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.windowstring"1m"Time window for rate limiting (e.g., "1m", "1h")
cliArtifactsobject{"additionalRouteLabels":null,"enabled":true,"image":{"image":"registry.redhat.io/rhem/flightctl-cli-artifacts-rhel9","pullPolicy":"","tag":""}}CLI Artifacts Configuration
cliArtifacts.additionalRouteLabelsstringnilAdditional labels for CLI Artifacts routes.
cliArtifacts.enabledbooltrueEnable CLI artifacts service
cliArtifacts.image.imagestring"registry.redhat.io/rhem/flightctl-cli-artifacts-rhel9"CLI artifacts container image
cliArtifacts.image.pullPolicystring""Image pull policy for CLI artifacts container
cliArtifacts.image.tagstring""CLI artifacts image tag
clusterCliobject{"image":{"image":"registry.redhat.io/openshift4/ose-cli-rhel9","pullPolicy":"","tag":"v4.20.0"}}Cluster CLI Configuration
clusterCli.image.imagestring"registry.redhat.io/openshift4/ose-cli-rhel9"Cluster CLI container image
clusterCli.image.pullPolicystring""Image pull policy for cluster CLI container
clusterCli.image.tagstring"v4.20.0"Cluster CLI image tag
dbobject`{"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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartredhat-rhem is pinned at v1.4.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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