Deploying Rocket.Chat on Red Hat OpenShift

A planning and build guide for running self-hosted Rocket.Chat on OpenShift 4 with the official Helm chart, with the SCC, routing, monitoring and database decisions made up front.

On this page

Deploying Rocket.Chat on OpenShift when your platform team already runs the cluster

Rocket.Chat installs on OpenShift 4 with the official Helm chart, and the work that differs from a generic Kubernetes install comes down to three changes: the security context, the routing and TLS setup, and monitoring. This path suits an organization that has already standardized on OpenShift, where the platform team operates the cluster, applies security policy centrally and expects new workloads to follow the same controls. Running Rocket.Chat there keeps messaging within the operating model, logging and access reviews your team already has, and infrastructure you control. If your team has no OpenShift operations experience, or you want a small single-host deployment, the Docker Compose path described elsewhere on this page is usually the simpler choice.

The chart deploys the Rocket.Chat application pods, which bundle Node.js in the official image, plus the Services and routes that expose them. It does not provision MongoDB for you in the way a managed database would, so a MongoDB 8.0 replica set must exist before the release is installed. Rocket.Chat 8.x requires MongoDB 8.0 or later running as a replica set, and a three-member set is strongly recommended for high availability. Decide early whether MongoDB runs inside the cluster through an operator or outside it on dedicated hosts or a managed service, since that choice affects connection strings, backup placement and who is paged when the database degrades. Confirm the exact chart values for your Rocket.Chat version against the OpenShift guide before you pin a release.

Before installing, have the platform team confirm three things with the cluster owners: that the nonroot-v2 SCC can be granted to the release service account, which the default restricted-v2 SCC does not allow for this pod, that an edge-terminated route fits your certificate process, and that User Workload Monitoring is enabled so you can import the Grafana dashboards instead of deploying the rocketchat/monitoring chart. Ask who approves the SCC grant, because it is the one change that must be reviewed against your cluster security baseline. Plan a restore test for the database before the first production upgrade, since the MongoDB layer carries most of the state.

Which deployment path fits your environment

Docker Compose runs a single Rocket.Chat instance on a host you manage directly, with no cluster to operate. The official rocketchat-compose repository combines compose files, a .env file and a reverse proxy into one deployment. This path fits teams that do not run OpenShift or Kubernetes and whose user count sits within the single-instance tier.

  • Tier fit: The reference architecture suggests one instance with a MongoDB replica set for up to 500 concurrent users. Above that point, the multi-instance design applies and requires a paid plan.
  • Platform ownership: Your staff patch the host, manage the Docker engine and renew TLS certificates, so they need Linux and container skills.
  • Pinned releases: Set RELEASE in .env to a specific version and upgrade on your own schedule, because end-of-life versions stop receiving security fixes.
  • Limited scaling: Compose does not reschedule containers across nodes, so added capacity usually means a larger host or a move to another path.
  • External database: The compose setup supports an external MongoDB, which lets the database run on separate infrastructure with its own backup policy.

Confirm your expected concurrent users, not total headcount, and your growth forecast before choosing this path, because moving from Compose to a cluster later means redeploying the stack and validating the data path again.

How the Rocket.Chat pods, router and MongoDB connect on OpenShift

Traffic starts with users on the internet, enters the OpenShift router through the openshift-default ingress class, and is terminated there with edge TLS before reaching the Rocket.Chat service and its pods. The pods reach a MongoDB replica set on the database network, which sits behind its own trust boundary. The monitoring path runs separately: User Workload Monitoring scrapes metrics from the Rocket.Chat pods inside the cluster, so no monitoring chart is needed. Check that the router-to-service hop, the database firewall rules and the monitoring scrape target all match your environment before go-live.

Traffic path from users through the router to pods and MongoDB, plus the monitoring scrape.

Installing Rocket.Chat with the Helm chart and the nonroot-v2 SCC

This sequence takes an OpenShift 4 project from prerequisite checks to a running Rocket.Chat release that is reachable through an edge-terminated route and accepts WebSocket connections.

  1. Confirm OpenShift and MongoDB prerequisites

    The platform team confirms the cluster runs OpenShift 4 and that the MongoDB 8.0 replica set is reachable from the namespace where Rocket.Chat will run. Rocket.Chat 8.x requires MongoDB 8.0 or later as a replica set, and a three-member replica set is strongly recommended for high availability. Confirm the connection string, credentials and network path from the cluster network, and check that the replica set reports a healthy primary. You know this step is done when a test connection from a debug pod authenticates and the replica set status shows a primary and secondaries.

  2. Create the project for the release

    Create a dedicated OpenShift project (namespace) for the Rocket.Chat release so its service accounts, secrets and network policies stay separate from other workloads. Record the project name, because the SCC grant and the Helm values both refer to it. Keep the MongoDB connection details and the Rocket.Chat secrets in that project, and avoid putting credentials in plain values files kept in source control. You know this step is done when the project appears in the console and your account can create secrets and deployments inside it.

  3. Grant the nonroot-v2 SCC to the service account

    Grant the nonroot-v2 security context constraint to the service account the Helm release will use. The default restricted-v2 SCC rejects the Rocket.Chat pod, so without this grant the pod stays out of the ready state even when the image and values are correct. Nonroot-v2 allows a container to run as a non-root user without granting broader privileges, which keeps the workload close to the restricted profile. Confirm the exact service account name in the chart documentation for the release you install. You know this step is done when the grant command succeeds and the SCC lists the service account as a user.

  4. Install the official Rocket.Chat Helm chart

    Add the official Rocket.Chat Helm repository and install the chart into the project with a values file that sets the MongoDB connection, the public site URL, the image tag and the secrets references. Pin the image version to a release that is inside its support window, and confirm the current supported lines in the release notes before you choose it. Do not install the rocketchat/monitoring chart on OpenShift, because monitoring is handled through User Workload Monitoring in a later step. You know this step is done when the Helm release reports deployed and the Rocket.Chat deployment shows its desired replica count.

  5. Configure the openshift-default ingress class

    Set the chart ingress to use the ingress class named openshift-default with edge TLS termination, so the OpenShift router terminates TLS and forwards plain HTTP to the Rocket.Chat service. Confirm the public hostname, the certificate chain you will present at the router, and the DNS record that points to the router. Verify the resulting route object in the project and confirm its host and TLS termination type match your values. You know this step is done when the route exists, shows the expected host and TLS setting, and the router admits it.

  6. Verify pod status and route reachability

    Check that the Rocket.Chat pods reach the ready state and that the logs show a successful connection to MongoDB without repeated restarts. Then request the public URL over HTTPS and confirm that the login page loads with a valid certificate chain from the router. If the pods are pending or crash looping, check the events for SCC admission errors, MongoDB authentication failures or missing secrets before changing the values. You know this step is done when every pod is ready, the route returns the Rocket.Chat page over HTTPS, and the server log shows no repeated database errors.

  7. Test WebSocket connectivity through the router

    Rocket.Chat clients keep a persistent WebSocket connection for real-time messaging, so confirm that the edge route passes WebSocket upgrades without dropping them. Sign in from a browser, open a channel, and send a message from a second session to confirm it arrives without a page refresh. Check the browser developer tools for a connection that stays open rather than reconnecting every few seconds. If messages arrive only after refresh, review the route and any proxy settings in front of the router before changing Rocket.Chat itself. You know this step is done when two sessions exchange messages in real time through the public hostname.

  8. Record the configuration for upgrades

    Save the Helm values, the chart version, the image tag, the SCC grant command and the route configuration in version control so the next upgrade repeats the same steps. Confirm with your Rocket.Chat plan and support documentation which versions remain supported before scheduling the next upgrade, because unsupported versions stop receiving security fixes. Store the secrets in your approved secret store rather than in the repository. You know this step is done when another engineer can rebuild the release from the recorded files and the stored secrets alone.

Edge TLS on the OpenShift router: what changes for Rocket.Chat

With edge termination, the OpenShift router holds the TLS certificate and decrypts traffic before it reaches Rocket.Chat. The chart is set to use the openshift-default ingress class with edge TLS, so the route presents the certificate your team owns, and the pods receive plain HTTP from the router. Before go-live, confirm who issues and renews that certificate, where its private key is stored, and how renewal is tested without interrupting users. Confirm also that the hostname in the Rocket.Chat site URL matches the route host exactly, because a mismatch breaks sign-in redirects and some client connections.

Edge termination also changes how client IP addresses reach the application. The router adds forwarding headers, so Rocket.Chat sees the router rather than the user unless it is told to trust the proxy hop. Confirm the proxy header settings in the Helm values and in the workspace administration settings, including the number of trusted forwarding hops, and check that clients cannot spoof the header to bypass rate limits. Run a test login from two networks and confirm the audit and session records show the expected addresses. Ask the platform team which router shards and ingress policies sit in front of the route, since each extra hop can change the header chain.

WebSocket traffic is the other item to verify. Rocket.Chat keeps live message delivery open over WebSocket connections, so the route must allow upgrade requests and long-lived connections without a short idle timeout cutting them. Test a browser session, a desktop client and a mobile client against the public hostname, and watch for repeated reconnects in the browser console. Confirm the route timeout and any router annotations your cluster administrators apply by default. If the route is passed through a corporate proxy or web application firewall, repeat the same tests from behind it.

Security and operational considerations on OpenShift

The OpenShift install asks for a few privileges and trust decisions that a standard Kubernetes install would not. Each card below is a decision or check your security and platform teams should own before Rocket.Chat carries real conversations, and most of them recur with every upgrade.

Reviewing the nonroot-v2 grant

Granting the nonroot-v2 SCC to the Rocket.Chat release service account is a privilege decision, not a formality. The default restricted-v2 SCC rejects the pod, so this grant is needed, but it widens what that account can run. Confirm the grant is bound to the release service account in one namespace, record who approved it, and remove it if the release is retired.

Rocket.Chat OpenShift docs

Pod Security and SCC scope

Check which SCCs each workload in the Rocket.Chat namespace can use, including MongoDB and any monitoring agents, and confirm that no one has granted a broader SCC to the namespace's default service account. Ask your platform team how Pod Security admission labels interact with OpenShift SCCs in your cluster version, because the two layers can disagree.

Secrets stored unencrypted in etcd

Kubernetes stores Secrets unencrypted in etcd by default, and Rocket.Chat's database credentials and other settings typically live there. Confirm that etcd encryption at rest is enabled on your cluster, or that secrets are sourced from an external store through the Secrets Store CSI Driver. Restrict list and watch access to Secrets with least-privilege RBAC.

Kubernetes Secrets practices

MongoDB credentials and network policy

Rocket.Chat 8.x requires MongoDB 8.0 or later running as a replica set, so its connection string carries credentials that reach every Rocket.Chat pod. Scope them to the Rocket.Chat database, rotate them through your secrets process, and use NetworkPolicy so only Rocket.Chat pods can reach the MongoDB service. Confirm that replica set members are not exposed through routes.

Upgrade cadence and client compatibility

Rocket.Chat versions stop receiving security and bug fixes at end of life, and unsupported versions may lose the ability to connect with the official mobile and desktop clients. Plan a recurring upgrade window tied to the support dates of the line you run, test the Helm chart values against the new release in a non-production namespace first, and track each patch release that addresses security issues.

Standard release support
6 months
Version durability docs

Backing up MongoDB and uploads

The MongoDB replica set holds messages and settings, and uploads stored outside MongoDB live in a separate store that a database backup will not capture. Confirm the backup covers both, that the backup location is outside the OpenShift cluster, and that you have restored a copy into a test namespace at least once before an upgrade. Record who can trigger a restore.

Questions teams ask before deploying Rocket.Chat on OpenShift

What drives the cost of deploying Rocket.Chat on OpenShift?

The cost is driven by the size of the work inside your cluster, not by a fixed package. The main components are discovery of your OpenShift version, security context and network policies, the Helm values for Rocket.Chat and MongoDB, TLS and router configuration, monitoring integration, backup design, and testing before users arrive. Each component is paid for as labor, and some carry recurring cost such as upgrades and support. Ask any quote to list each component separately, state which items are one-time and which recur, and name the environments covered (for example, development, staging and production). DeployOpen does not publish a price list, so a quote follows from the written scope.

How long does a Rocket.Chat deployment on OpenShift take?

Duration depends on how many decisions are already made before the install starts. Teams that have settled their identity provider, file storage, MongoDB placement, certificates and cluster access usually move faster than teams that still need to decide them. Other drivers include the number of environments, whether you need User Workload Monitoring enabled, how your change process handles SCC grants, and how much testing you require before go-live. No fixed duration is stated here. Ask for a timeline in the written scope that ties each phase to a named dependency on your side.

What does the work need from our internal team?

Your team needs to provide cluster-admin or equivalent access for the granted SCC and router settings, a project or namespace plan, DNS records and certificates for the route hostname, and a decision on where MongoDB runs. Someone must own the identity provider integration, the monitoring stack and the change window for upgrades. Security and compliance staff should review the SCC grant, edge TLS termination and secrets handling early, because those choices are hard to change later. Confirm these responsibilities in the scope so that neither side assumes the other has them.

Can our own platform team deploy Rocket.Chat on OpenShift without a partner?

Yes, a platform team with Helm and OpenShift experience can install the official chart, but the work is more than running one command. Teams commonly underestimate the SCC grant, the router and edge TLS settings, the replacement of the monitoring chart with User Workload Monitoring, and the operating model for backups and upgrades. Assess your team against those specific tasks. If you have gaps, a fixed-scope engagement can cover the design and build while your engineers take over operations, with the handover documented in the deliverables.

How do Rocket.Chat plan tiers change the scope of an OpenShift deployment?

The plan decides which features and architectures you can use, and that changes the design. The free Starter plan includes LDAP and Active Directory authentication, single sign-on, multi-factor authentication, end-to-end encryption, retention and read receipts, with up to 50 users. The free Community workspace allows up to 100 concurrent users with core messaging. Multi-instance and microservice designs, which the reference architectures suggest above 500 concurrent users and above 5,000 respectively, require a paid plan. Air-gapped deployment and the paid audit and failover features are also paid-plan capabilities. Confirm your plan before design, because switching later can change the architecture.

Does Rocket.Chat on OpenShift need a separate plan for licensing or registration?

Licensing depends on the plan you choose and on how the workspace connects outward. Enterprise code sits under a separate license from the MIT-licensed core, so confirm which directories you are running and under which terms. Workspace registration and license sync need outbound access from the cluster, and the Marketplace, push and statistics endpoints also depend on network policy. Ask the project to confirm the exact endpoints for your plan and to document what happens if outbound access is restricted, including the air-gapped licensing path where it applies.

What recurring work comes after the first deployment?

Rocket.Chat releases are supported for limited periods, and after end of life a version receives no security or bug fixes and some cloud services stop working. Standard releases are supported for 6 months and LTS releases for 12 months, so upgrades recur on that cycle. OpenShift and Kubernetes also move on their own schedules, which can affect SCCs, routes and chart compatibility. Budget for patching, upgrade testing, backup restore tests before upgrades, monitoring review and capacity checks. Ask for a retainer or an operations handover so these tasks have a named owner.

Kubernetes version and upgrade rules that affect the Rocket.Chat release

The Kubernetes version skew policy sets the order in which your OpenShift platform team can move the control plane and nodes, and that order decides when you can safely change the Rocket.Chat release running on top. The rule to plan around is that the kube-apiserver is upgraded one minor version at a time, before kube-controller-manager, kube-scheduler and kubelets. Kubelets may be up to three minor versions older than the kube-apiserver. Because OpenShift manages these components through its own release channels, confirm with Red Hat which Kubernetes minor version each OpenShift release carries before you schedule a cluster upgrade, and read the Kubernetes version skew policy alongside that information.

The Kubernetes project maintains the three most recent minor releases. As of September 2026 these were 1.37 (end of life October 28, 2027), 1.36 (June 28, 2027) and 1.35 (February 28, 2027). A cluster on a minor version that has left this window receives no upstream fixes, so the platform team should treat the end-of-life dates as a planning input. Each Kubernetes release is supported for about one year of patch releases. Verify these dates on Kubernetes releases before you commit to a window, because the dates are published upstream and can change for the platform's own support terms.

The Rocket.Chat release should follow the cluster, not lead it. Before you move the cluster to a new minor version, check that the Rocket.Chat version you run is supported with it, then upgrade Rocket.Chat in a separate change with its own backup and rollback point. Rocket.Chat standard releases are supported for 6 months and LTS releases for 12 months, so a cluster upgrade can land in the middle of a Rocket.Chat support window. Record both change dates together in your change calendar so that a cluster move never removes the ability to run the chart version you have tested.

How DeployOpen works on this

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including OpenShift clusters you control. For Rocket.Chat on OpenShift, the work starts with a written scope that fixes the platform choices before any cluster changes are made.

How we scope

  • Confirm the OpenShift 4 cluster version, namespace layout and whether the release service account can be granted the nonroot-v2 SCC.
  • Agree the Rocket.Chat version, MongoDB replica set placement and whether the deployment will use a paid plan.
  • Record the edge TLS certificate source, the ingress class and the monitoring approach in a fixed-scope written agreement.

How we build

  • Install the official Rocket.Chat Helm chart with values reviewed against your SCC, router and storage requirements.
  • Configure edge TLS termination on the OpenShift router and verify WebSocket connections from real clients.
  • Connect User Workload Monitoring and import the agreed Grafana dashboards in place of the monitoring chart.

How we hand over

  • Deliver the Helm values, SCC grant records, route configuration and MongoDB connection details as versioned documentation.
  • Run written verification steps covering login, file upload, restart behavior and a tested backup and restore.
  • Walk your platform and security teams through the runbook for upgrades, scaling and monitoring alerts.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover, scoped in writing.
  • Plan each Rocket.Chat upgrade against the supported release lines and your OpenShift and Kubernetes version schedule.
  • Confirm with your team which outbound endpoints, license sync and registration settings the cluster must reach.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.