Running Hyperswitch on premises on your own Kubernetes

How to run Hyperswitch in your own data center on Kubernetes, which components you must supply yourself, and what the validated Helm path and data residency mean for your team.

On this page

Running Hyperswitch on premises on your own Kubernetes: when it fits

Running Hyperswitch on premises means deploying the Hyperswitch stack with Helm onto a Kubernetes cluster that your team operates in its own data center, so card traffic, configuration and data stay under your control. The code is open source under Apache 2.0 and maintained by Juspay, so you own the deployment, the upgrades and the operating model. The Helm chart is only part of the work. Ingress, the egress proxy for outbound processor calls, PostgreSQL, Redis, secrets management and monitoring are not bundled as a finished service in this path, so your team supplies and runs each of them. Confirm these choices with your platform team before you commit to a timeline.

This path fits regulated payments teams that must keep data in a specific jurisdiction or facility, that cannot send transaction data through a hosted control plane, or that already run Kubernetes, PostgreSQL and Redis as internal standards. The Hyperswitch self-hosting documentation describes the Helm route as the production-oriented option, while the local Docker setup is for evaluation only. Read the architecture before you decide: the Router and Scheduler services both depend on PostgreSQL, with a primary and replica arrangement, and on Redis for caching and the scheduler queue. Those dependencies are what your data center must provide with the availability and recovery targets your payments team sets.

The decision is less about whether Kubernetes is available and more about whether your organization can operate stateful services with the same discipline. Ask who patches PostgreSQL and Redis, who tests restores, who rotates the secrets that connector credentials depend on, and how a failed node or failover is detected. If those answers are not already written down, the on-premises path adds work that a hosted option would carry for you. Your go-live review should cover these ownership questions alongside the compliance and processor checks.

How the Hyperswitch components and supplied services connect inside your data center

The diagram starts at the customer's traffic entering through the ingress you supply, which reaches the Router inside the Kubernetes cluster. The Router calls the card vault and the encryption service over separate hand-offs, and the Scheduler's Producer and Consumer share work through Redis. Outbound processor calls leave through your egress proxy, which sits outside the trust boundary alongside the processors. Check that PostgreSQL primary and replica, Redis, the secrets store and monitoring all sit inside the boundary and that every path to an external processor passes through the egress proxy.

Simplified view of Hyperswitch components and supplied services inside the trust boundary.

Which components you must supply yourself

The Hyperswitch Helm chart deploys the application services, but a production stack in your data center depends on infrastructure the chart does not supply. The six components below connect to the Router, Scheduler and card vault, so each one needs an owner, a design and a test before go-live.

Ingress for inbound traffic

Hyperswitch exposes its API, Control Center and webhook endpoints through a route you define. The chart does not choose your ingress controller, TLS certificates, rate limits or source restrictions. Confirm with your platform team which controller you run, how certificates renew, and which paths must be reachable from the internet, such as inbound processor webhooks, versus paths that should stay on your internal network.

Self-hosting docs

Egress proxy for processor calls

The Router makes outbound calls to payment processors and wallet providers. In many data centers, outbound traffic must pass through a controlled proxy with an allowlist. Confirm every processor hostname and port your contracts require before go-live, and test the proxy path with test credentials. Ask each processor which source IP ranges they accept if you use IP allowlisting on their side.

PostgreSQL with master and replica

Hyperswitch stores its payment state in PostgreSQL, and the architecture uses a primary and a replica. The chart does not run a database for production. You must decide who operates the cluster, how failover is handled, and how backups and point-in-time recovery are tested. PostgreSQL does not detect primary failure on its own, so confirm which external failover tool your team will run.

Self-hosting docs

Redis for cache and scheduler queue

Redis serves as the cache and holds the Scheduler queue, so a Redis outage affects payment processing, not only performance. Choose between a managed or self-operated deployment, then confirm the license terms of the Redis version you pin. Check whether your team will use Redis Sentinel for failover and how much memory the queue needs under your peak load.

Secrets management

Processor credentials, database passwords, the master encryption material and the card vault keys all need a home outside Git. Kubernetes Secrets are stored unencrypted in etcd by default, so you must enable encryption at rest or pull values from an external store. Confirm who holds each key, how rotation runs, and which RBAC roles can read Secrets in the Hyperswitch namespaces.

Secrets good practices

Monitoring and alerting

The chart does not give you alert routing, dashboards or log retention that match your incident process. Decide which metrics, logs and traces feed your operations team, who receives payment failure alerts, and how long logs are kept for audit. Confirm with your security team how logs containing payment data are filtered before they leave the cluster.

Configuration options and when each fits

This table compares the three ways to run a self-hosted Hyperswitch stack: the validated Helm path on your own Kubernetes, the cloud-specific guides run in your own accounts, and the local Docker setup for evaluation only. Read each row against the vault model you choose, because that choice decides how much of the card data environment your team operates.

OptionWhat it coversWhen it fitsMain trade-off
Helm chart on your own KubernetesThe hyperswitch-stack Helm chart installed on a cluster in your data center, with you supplying ingress, egress proxy, PostgreSQL, Redis, secrets and monitoringData residency rules require on-premises hosting and your team already runs and patches KubernetesYou own every supporting component and its upgrades, and must confirm each external dependency works in your environment
AWS guide in your accountHyperswitch documented for AWS, deployed into an AWS account you own with the cloud's networking, managed databases and identity servicesYour organization already standardizes on AWS and wants managed services for database and cacheCloud provider services become part of your PCI DSS and data residency scope, and cost recurs with usage
Google Cloud guide in your accountHyperswitch documented for GCP, deployed into a Google Cloud project you own with its own cluster and managed servicesYour platform team operates on Google Cloud and prefers its managed Kubernetes and database offeringsCloud-specific configuration must be reviewed separately, and provider lock-in grows with each managed service adopted
Azure guide in your accountHyperswitch documented for Azure, deployed into an Azure subscription you own with Azure Kubernetes Service and surrounding servicesYour estate runs on Azure and identity, secrets and networking already follow Azure standardsConfirm the maturity of the Azure path for your release before committing, since support status can differ from the Helm path
Docker Compose for evaluationBackend, Control Center and SDK running on one laptop or test host with test connectorsEngineers want to explore the API and dashboard before planning productionNot a production path. It has no high availability, no production secrets handling and no PCI DSS assessment value
Vault model: in-house PCI (self-hosted vault)Hyperswitch's native vault stores card data inside your environmentYou need full control of card storage and accept the compliance burdenYour team operates the vault, its keys and PCI DSS certification. Juspay's docs state the merchant carries full responsibility
Vault model: external PCI vault providerHyperswitch orchestrates payments while an external provider such as VGS or Tokenex holds card dataYou want orchestration in your infrastructure but cards held by a specialist vault providerYour team still operates the orchestration layer, and the vendor contract, data flows and their attestations must be reviewed
Vault model: SaaS Hyperswitch VaultSelf-hosted orchestration uses the SaaS Hyperswitch Vault for card storageYou want fewer PCI-scoped components to run while keeping the orchestration stack in-houseCard data leaves your infrastructure, so data residency and vendor due diligence must be confirmed before choosing this model

Setup sequence for an on-premises Hyperswitch stack

This sequence takes an on-premises Kubernetes cluster from a verified control plane to a running Hyperswitch stack with its database, cache, ingress, egress, secrets and Control Center sign-in in place. Each step closes with a check, so the team knows when to move on. The order matters because Hyperswitch depends on several components that you supply yourself.

  1. Confirm the Kubernetes distribution and control plane plan

    Your platform team chooses a Kubernetes distribution and confirms it is a Certified Kubernetes offering, then checks that its minor version is one the project still supports. Decide on a stacked or external etcd topology for a highly available control plane, with at least three control plane nodes and a TCP load balancer in front of the API server on port 6443. Confirm the version against the Kubernetes releases page and the Hyperswitch releases page before you install anything. Done when every control plane node reports Ready and the API server answers through the load balancer.

  2. Provision PostgreSQL with replication and Redis

    Deploy PostgreSQL with a primary and at least one standby, and choose a major version that is still supported on the date you deploy. Confirm that Hyperswitch's required schema and version compatibility match the release you plan to install. Add a connection pooler and set up continuous archiving with a tested point-in-time recovery path. Deploy Redis for caching and the scheduler queue, and plan Redis Sentinel for high availability if you do not use Redis Cluster. Confirm the Redis licence terms with your legal team, since the licensing changed across 7.x and 8.0. Done when a test restore completes and failover tooling promotes a standby in a controlled test.

  3. Supply ingress and egress for the stack

    Hyperswitch does not supply its own ingress or outbound proxy in your data center, so your network team provides both. Ingress needs TLS termination, routing to the Router and Control Center services, and a policy for which clients can reach the operations console. Egress needs a controlled path to each payment processor's endpoints, with allow lists and logging. Confirm the processor endpoints and webhook callback addresses with each processor before go-live. Done when a test request reaches the Router through ingress and an outbound call from a Hyperswitch pod reaches a processor sandbox through the egress path.

  4. Set up secrets and encryption at rest

    Secrets in Kubernetes are stored unencrypted in etcd by default, so enable encryption at rest for the Secret resource before you load database credentials, Redis passwords, and keys. Restrict list and watch access with least-privilege RBAC, or pull secrets from an external store through the Secrets Store CSI Driver. Keep card vault and encryption service keys under a separate custody model, as covered in the card vault pages. Done when a test Secret written to etcd is stored encrypted and a service account without permission cannot read Hyperswitch secrets.

  5. Install the Helm chart with production values

    Add the Hyperswitch Helm chart repository and create a dedicated namespace for the environment. Before the install, confirm that a Superposition service is running in the cluster, because the v1.124.0 release made it a required configuration dependency and upgrades to that version need it in place. Set production values for the database and Redis endpoints, secret references, replica counts, resource requests and ingress hosts, and pin the chart and image versions to the release you validated. Done when all pods report Ready and the Router and Scheduler services respond on their health endpoints.

  6. Configure Control Center sign-in through OpenID Connect

    Connect the Control Center to your identity provider using OpenID Connect, since Hyperswitch does not support SAML, JIT or SCIM provisioning. Invite each operator in Hyperswitch first, because the platform does not create users from the identity provider, and assign roles inside Hyperswitch rather than mapping them from identity provider groups. Restrict who can reach the console at the network and ingress layers. Done when a test operator signs in through the identity provider, lands in the correct Hyperswitch role, and an uninvited account is refused.

  7. Verify the stack with health checks

    Run the health and readiness checks for every service, confirm that PostgreSQL replication lag and Redis failover are visible to your monitoring, and send a test payment through the sandbox connector to confirm the full path from the client through the Router, the processor and the webhook return. Check that logs and metrics from each component reach your monitoring stack and that a failed pod is restarted. Record the Helm values, chart version and image versions in version control. Done when the test payment completes, the webhook is received, and all monitoring signals appear, which is the handoff point to the go-live checklist.

How the Kubernetes control plane and data stores carry the workload

The control plane decides whether your on-premises Hyperswitch cluster survives a node loss, so settle its topology before any Helm install. The kubeadm high availability guide describes two options: a stacked control plane with etcd on the same nodes, or an external etcd cluster on separate hosts. Either way, plan at least three control plane nodes behind a TCP load balancer that fronts kube-apiserver on port 6443. Kubernetes documentation says etcd should run with an odd number of members, recommends five members in production, and needs a backup plan. Take snapshots with etcdctl snapshot save, test restores with etcdutl, and store the snapshots off the cluster. Ask your platform team who owns that schedule and how often a restore is rehearsed.

Version skew and support windows set your upgrade calendar. As of September 2026, the Kubernetes project maintains 1.37 (end of life October 28, 2027), 1.36 (June 28, 2027) and 1.35 (February 28, 2027). The skew policy requires kube-apiserver to be upgraded one minor version at a time, before the controller manager, scheduler and kubelets, and allows kubelets up to three minor versions behind. Confirm which distribution you will run and whether it is CNCF-certified, because that determines how quickly it tracks upstream releases.

PostgreSQL and Redis need their own failover plans, because neither gives you automatic recovery out of the box. PostgreSQL hot standbys serve read-only queries and can replicate synchronously or asynchronously, but PostgreSQL does not detect a failed primary or promote a standby by itself, so you need an external failover tool. Redis Sentinel provides automatic failover by promoting a replica to master, and its documentation says a robust deployment needs at least three Sentinel instances. Confirm which PostgreSQL major version you will run against the supported list in the PostgreSQL versioning policy, and decide who runs failover drills for both data stores.

Security and operational considerations for your data center

Running Hyperswitch in your own data center moves security decisions to your team. The cards below cover the places where defaults, license terms or payment scope can surprise you if they are not planned before go-live.

Encrypt Kubernetes Secrets at rest

Kubernetes stores Secrets unencrypted in etcd by default, so database credentials, Redis passwords and processor keys are exposed to anyone who can read etcd backups or the datastore. Enable encryption at rest for etcd or move sensitive values to an external store through the Secrets Store CSI Driver. Before go-live, confirm where each Hyperswitch credential is kept and who can list or watch those objects.

Secrets good practices

Apply RBAC and Pod Security Standards

Hyperswitch services, the Control Center and any monitoring agents should run under dedicated service accounts with least-privilege roles, not cluster-admin. Enforce Pod Security Standards on the Hyperswitch namespaces so containers cannot run privileged or mount host paths without an approved exception. Use the CIS Kubernetes Benchmark as the checklist for your cluster hardening review, and record which items you accept or defer.

Pod Security Standards

Plan around Control Center SSO limits

The Control Center supports single sign-on through OpenID Connect only. SAML is not supported, there is no just-in-time or SCIM provisioning, users must be invited first, and roles are managed in Hyperswitch rather than mapped from your identity provider. Document this as a manual joiner and leaver process, and confirm that your access reviews cover Hyperswitch roles directly.

Control Center SSO docs

Use SCRAM for PostgreSQL authentication

The PostgreSQL database behind Hyperswitch holds payment records and must not accept weak password methods. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so set password_encryption to scram-sha-256 and remove MD5 entries from pg_hba.conf. Where your policy requires it, confirm whether certificate or other supported methods fit your database access model.

PostgreSQL authentication methods

Choose the Redis license deliberately

Redis 8 and later can be used under RSALv2, SSPLv1 or AGPLv3, at your choice. Versions 7.4.x to 7.8.x use the dual RSALv2 or SSPLv1 license, which is not OSI-approved, and 7.2.x and earlier use BSD-3-Clause. Have legal review which license applies to your build, and check the Redis licenses FAQ if you modify Redis code offered as a network service.

Redis licenses

Carry PCI DSS scope in-house

In the self-hosted, in-house PCI vault model, the Hyperswitch docs state that the merchant is fully responsible for PCI DSS certification and data handling. Your data center, network segmentation, key handling and logging all fall into the assessed environment. Ask your QSA early whether an external PCI vault provider would shrink that scope, and confirm the decision before you design the network.

In-house PCI model

Questions teams ask before running Hyperswitch on premises

What drives the cost of an on-prem build compared with a cloud path?

The main difference is who supplies the parts a cloud path bundles. On premises, your team pays for the hardware or virtualization, storage, load balancing, backup targets and the labor to build ingress, an egress proxy, PostgreSQL, Redis, secrets management and monitoring. Cloud guides lean on managed database, cache and identity services that you would otherwise operate yourself. Cost rises with the number of environments, the high availability topology (the kubeadm guide calls for at least three control plane nodes) and extra services a release requires, such as Superposition from v1.124.0. Ask any quote to list each component, who installs it, who operates it after handover and which environments are covered.

What recurring work does an on-premises Hyperswitch stack create?

Recurring work starts with release tracking. Hyperswitch ships roughly monthly minor releases, and each one publishes a compatibility matrix for Control Center and web client versions. Other recurring items include:

  • Kubernetes ships about three minor releases a year and maintains only the three most recent, so cluster upgrades follow a steady cycle.
  • PostgreSQL publishes minor releases at least every three months, and PostgreSQL 14 support ends November 12, 2026.
  • Redis publishes security releases that need review and rollout.
  • etcd snapshots need scheduled backups and tested restores.

Monitoring alerts, on-call rotations and access reviews sit on top of this list and should be budgeted as ongoing effort.

What Kubernetes and database skills does the client team need?

Plan for Kubernetes operations, PostgreSQL operations and Redis operations. On Kubernetes, the team needs to handle RBAC, namespaces, Secrets (which etcd stores unencrypted by default unless encryption at rest is configured), etcd backup and restore, and upgrades that follow the version skew policy: kube-apiserver goes first, and kubelets may run up to three minor versions behind it. On PostgreSQL, expect hot standby and replication setup, a clear decision between synchronous and asynchronous replication, point-in-time recovery and a planned major upgrade method. PostgreSQL does not fail over on its own, so an external tool is required. For Redis, Sentinel needs at least three instances. Ask any partner for a skills matrix against these items.

Can a team run Hyperswitch on premises without outside help?

Yes, a capable team can do it alone, because every core component is open source and the Helm path is documented. The real question is whether the team can carry the operating load after go-live without gaps. Common outside help covers scope and architecture decisions, hardening against the CIS Kubernetes Benchmark, backup and restore testing and a go-live review. DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks. Engagements are fixed-scope, with deliverables and timelines agreed in writing, and ongoing support is available as a retainer. Decide based on which skills you can staff over the long term.

How long does an on-premises Hyperswitch build take?

This page does not set a duration, and any figure you hear should come with its assumptions. The schedule depends on the factors that move the critical path: whether you already run a Kubernetes platform with a highly available control plane, which PostgreSQL and Redis services you choose and how you will operate them, how many environments you need (sandbox, integration test and production), the PCI scope decision, and how quickly processor contracts and live credentials arrive. Security review and change approval cycles often set the pace. Ask for a written scope with milestones, the dependencies each milestone waits on and the client tasks listed by name.

Who carries PCI DSS scope under the self-hosted vault models?

The Hyperswitch docs describe three self-hosted vault models. In the self-hosted model with the native Hyperswitch Vault, the merchant is fully responsible for PCI DSS certification and data handling. In self-hosted orchestration with an external PCI vault provider such as VGS or Tokenex, card data sits with that provider, which may reduce your own scope, and the provider's attestation becomes part of your evidence. The third model pairs self-hosted orchestration with the SaaS Hyperswitch Vault. Confirm the scope conclusion with your Qualified Security Assessor, because scope depends on your networks, systems and data flows. DeployOpen prepares systems, controls and evidence for assessments, but independent auditors and certification bodies issue the reports and certifications.

What licensing terms apply to an on-premises Hyperswitch stack?

The core components use permissive licenses. Hyperswitch and its Control Center are Apache 2.0, Kubernetes is Apache 2.0 and PostgreSQL uses the PostgreSQL License. Redis is the component to check closely. Redis 7.2.x and earlier remain under BSD-3-Clause. Redis 7.4.x through 7.8.x use RSALv2 or SSPLv1, neither of which is OSI-approved. Redis 8.0 and later can be used under RSALv2, SSPLv1 or AGPLv3, at your choice. Redis's licensing FAQ says teams running unmodified artifacts see no impact, while teams that offer modified Redis as a network service must make the modified source available to that service's users. Confirm your Redis version and license choice with counsel before you standardize.

How DeployOpen scopes and delivers an on-premises Hyperswitch deployment

DeployOpen plans, builds, documents and supports self-hosted open-source platforms inside your own infrastructure, so an on-premises Hyperswitch stack runs in your data center on your Kubernetes cluster. We agree the scope in writing first, then deliver the components, controls and handover material your security, platform and compliance teams need to review.

How we scope

  • We confirm which Hyperswitch components, optional services and vault model are in the written scope
  • We map the ingress, egress proxy, PostgreSQL, Redis, secrets and monitoring pieces your team must supply
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts

How we build

  • We deploy the Helm path onto your Kubernetes cluster, with values set for your data residency and network rules
  • We configure etcd backups, Secrets encryption at rest and least-privilege RBAC as part of the cluster build
  • We test payment flows, failover of PostgreSQL and Redis, and access controls before anything goes live

How we hand over

  • You receive runbooks for upgrades, backups, restores and rollback, written for your platform engineers
  • You receive configuration records and evidence for the controls your compliance and security teams will review
  • We walk your team through the deployed stack so operators can run it without us

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover
  • Upgrades to new Hyperswitch releases are planned against the compatibility matrix and dependency changes
  • Support scope, response expectations and fees are set in the written agreement, and we quote from the agreed scope

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.