Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • View All Red Hat Products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Secure Development & Architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • Product Documentation
    • API Catalog
    • Legacy Documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Deploying OpenShift hosted clusters with HyperShift

October 7, 2025
Andre Rocha
Related topics:
APIsAutomation and managementKubernetesSecurityVirtualization
Related products:
Red Hat OpenShiftRed Hat OpenShift Data FoundationRed Hat OpenShift Virtualization

Share:

    HyperShift introduces a new way to manage Kubernetes with a Red Hat OpenShift feature called hosted control planes that run as workloads on existing clusters. This model cuts costs and complexity, speeds up cluster creation and upgrades, and makes it easier to scale large fleets. With stronger isolation, smarter automation, and optimized resource usage, HyperShift delivers the agility enterprises need to stay ahead.

    What is HyperShift?

    HyperShift is the open source technology behind the hosted control planes feature in OpenShift. Instead of running each cluster’s control plane on nodes, HyperShift hosts them on a management cluster, enabling faster provisioning, better efficiency, and greater scalability. In practice, you would not install HyperShift directly. You would use hosted control planes in OpenShift powered by HyperShift.

    Hosted clusters with OpenShift Virtualization

    Running Red Hat OpenShift Virtualization on hosted clusters unlocks a powerful platform for managing virtual machine workloads. This architecture combines the hardware-level control of bare metal with the performance benefits of lightweight hosted control planes, offering a flexible and efficient infrastructure for modern applications.

    NodePools: VMs vs. bare metal

    NodePools are groups of worker nodes in a hosted cluster, where VMs and applications actually run, all sharing the same configuration and lifecycle management settings.

    HyperShift hosted control planes can run NodePools on either virtual machines or bare metal agents:

    • VMs: Provide easier provisioning, cloud-friendly, integrates well with existing virtualization and storage platforms.
    • Bare metal: Offers better performance, hardware isolation, but requires careful setup of networking (i.e., VIPs, DNS, and load balancers) and storage.

    This article focuses on the bare metal approach, highlighting the specific networking and storage considerations required for this scenario.

    Understanding the architecture

    Before diving into the implementation, it's important to understand the following key components of the cluster architecture:

    • Management cluster (hosting cluster): The existing OpenShift cluster that hosts the control plane workloads.
    • Hosted cluster: The new OpenShift cluster whose control plane runs on the management cluster (Figure 1).
    • Agent nodes: Physical machines that join the hosted cluster as worker nodes.
    A diagram showing hosting cluster and hosted clusters.
    Figure 1: This diagram shows the hosting cluster and hosted clusters.

    Certificate management considerations

    When working with custom domains for the Kube API, it's important to understand how certificate generation works in HyperShift. The system automatically generates certificates based on the IP address configuration, which ensures secure communication while maintaining compatibility with the hosting infrastructure.

    For environments requiring specific FQDN-based certificates, consider implementing custom certificate management strategies that align with your organization's PKI requirements.

    Deploy clusters with HyperShift

    HyperShift's hosted cluster deployment provides a powerful foundation for multi-tenant OpenShift environments. The following steps demonstrate the configuration patterns and best practices to create scalable, more secure, and manageable OpenShift infrastructures that meet enterprise requirements.

    Step 1: Prepare the management cluster

    • Ensure you have an existing OpenShift cluster that will serve as the management/hosting cluster.
    • Verify the installation of these required operators:
      • Multicluster Engine
      • MetalLB

    Step 2: Configure networking

    This is a crucial step that involves configuring the network infrastructure for your hosted cluster's API server. This requires careful coordination between DNS, load balancing, and IP address management.

    Reserve the API server endpoint

    • Define a Virtual IP (VIP) for the hosted cluster’s API server.
    • Create a DNS record pointing this VIP to the desired domain (api.<cluster>.<basedomain>).

    To make it easier to understand, let's assume these variables:

    • hosted-cluster-namespace = hc-site1-linux-workload
    • hosted-cluster-name = ocp-linux-vms

    Next, we will configure the MetalLB as follows:

    apiVersion: metallb.io/v1beta1
    kind: IPAddressPool
    metadata:
      name: ocp-linux-vms-api-ip
      namespace: metallb-system
    spec:
      addresses:
        - 192.168.0.11/32
      serviceAllocation:
        namespaces:
          - hc-site1-linux-workload-ocp-linux-vms
      autoAssign: true
    ---
    apiVersion: metallb.io/v1beta1
    kind: L2Advertisement
    metadata:
      name: ocp-linux-vms-api-advertisement
      namespace: metallb-system
    spec:
      ipAddressPools:
        - ocp-linux-vms-api-ip

    Networking checklist:

    • The pool IP = the IP used in the DNS record.
    • Only one IP used for the API server.
    • Namespace of the pool must follow the pattern {hosted-cluster-namespace}-{hosted-cluster-name}

    A hosted cluster also needs a VIP for the Ingress layer (wildcard). You could use a load balancer or MetalLB, but that's a topic for another article.

    Step 3: Configure storage

    If you're using Red Hat OpenShift Data Foundation, install the operator on the management cluster. If you use another type of storage, make sure to configure it in the clusters that need access to it. Also, adjust the storageClass as needed.

    Ensure that the ocs-storagecluster-ceph-rbd-virtualization storage class exists (if using ODF).

    If you do not want template images downloaded automatically, adjust the HyperConverged resource as follows:

    spec:
      enableCommonBootImageImport: false

    Step 4: Define environment variables

    Using variables is not mandatory, but they will make the process easier to repeat and facilitate automation.

    export HOSTED_CLUSTER_NAME="ocp-linux-vms"
    export CLUSTERS_NAMESPACE="hc-site1-linux-workload"
    export NODE_POOL_REPLICAS="2"
    export BASEDOMAIN="example.com"
    export ETCD_SC="ocs-storagecluster-ceph-rbd-virtualization"
    export KUBEAPI_VIP="192.168.0.11"

    When creating the inventory with Agent Nodes, don't forget to apply a label to them. You can do this via NMStateConfig.

    Step 5: Create the hosted cluster

    Use the hcp CLI to generate the hosted cluster manifests:

    hcp create cluster agent \
    --name ${HOSTED_CLUSTER_NAME} \
    --namespace ${CLUSTERS_NAMESPACE} \
    --base-domain=${BASEDOMAIN} \
    --node-pool-replicas ${NODE_POOL_REPLICAS} \
    --etcd-storage-class ${ETCD_SC} \
    --api-server-address ${KUBEAPI_VIP} \
    --render --render-sensitive > hosted-cluster-manifests.yaml

    Pay attention to the render parameter. This is important because we can easily customize the YAML manifests of the hosted cluster.

    This is just one example. You can explore many other parameters and options, but the best choice depends on the project’s needs.

    Step 6: Adjust service publishing strategy

    The default configuration uses NodePort services. But for production deployments, LoadBalancer services provide better integration with enterprise networking.

    Use a combination of LoadBalancer and Routes as follows:

    services:
    - service: APIServer
      servicePublishingStrategy:
        type: LoadBalancer
    - service: OAuthServer
      servicePublishingStrategy:
        type: Route
    - service: OIDC
      servicePublishingStrategy:
        type: Route
    - service: Konnectivity
      servicePublishingStrategy:
        type: Route
    - service: Ignition
      servicePublishingStrategy:
        type: Route

    This configuration leverages OpenShift's native routing capabilities for most services while using LoadBalancer specifically for the API server.

    Step 7: Manage certificates

    HyperShift automatically generates certificates based on the configured IP.

    For enterprise environments:

    • Integrate with your internal CA/PKI.
    • Replace the default certificates if compliance requires it.
    • Customize your hosted cluster HostekubeAPIServerDNSName variable.

    Step 8: Production hardening

    To harden production, plan according to the following:

    • Right-size the management cluster to handle control plane workloads.
    • Avoid subnet overlaps between management and hosted clusters.
    • Define backup and disaster recovery strategies (including geographic DR if needed).

    Step 9: Monitor and validate

    For monitoring, you can track cluster creation in OpenShift Console > Infrastructure > Clusters.

    To validate, follow these steps:

    1. Confirm agent node registration and readiness.
    2. Test API server accessibility with oc login.
    3. Verify connectivity between management and hosted clusters.
    4. Schedule workloads properly on agent nodes.

    You can see the deployed hosted cluster in Figure 2.

    The OpenShift Console shows deployed hosted cluster.
    Figure 2: This shows the deployed hosted cluster in the OpenShift console.

    Wrap up

    HyperShift's hosted cluster deployment provides a powerful foundation for multi-tenant OpenShift environments. By following the configuration patterns and best practices demonstrated in this article, you can create scalable, more secure, and manageable OpenShift infrastructures that meet enterprise requirements.

    This technology demonstrates Red Hat's commitment to simplifying Kubernetes operations while maintaining the full power and flexibility of OpenShift. As organizations continue to adopt cloud-native architectures, HypersShift provides the operational efficiency needed to manage multiple clusters at scale.

    Whether you're building development environments, implementing multi-tenant platforms, or creating edge-computing solutions, HyperShift's hosted cluster approach offers the flexibility and efficiency modern infrastructure demands.

    Last updated: October 13, 2025

    Related Posts

    • How to build hosted clusters on the OpenStack platform

    • Run OpenShift sandboxed containers with hosted control planes

    • Easily upgrade hosted OpenShift Virtualization clusters on hosted control planes

    • How to manage a fleet of heterogeneous OpenShift clusters

    • Hosted control plane operations

    • Gain confidence with hosted control planes and OpenShift Virtualization using public cloud

    Recent Posts

    • Profiling vLLM Inference Server with GPU acceleration on RHEL

    • Network performance in distributed training: Maximizing GPU utilization on OpenShift

    • Clang bytecode interpreter update

    • How Red Hat has redefined continuous performance testing

    • Simplify OpenShift installation in air-gapped environments

    What’s up next?

    Read Operating OpenShift, a practical guide to running and operating OpenShift clusters more efficiently using a site reliability engineering (SRE) approach. Learn best practices and tools that can help reduce the effort of deploying a Kubernetes platform. 

    Get the e-book
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue