Deploying Hyperswitch on Google Cloud GKE

A walkthrough of the Google Cloud path for self-hosted Hyperswitch: GKE cluster and node pools, the Terraform recipe Juspay marks as validated, managed PostgreSQL and Redis choices, and the Helm install.

On this page

Deploying Hyperswitch on Google Cloud GKE: when your team needs this path

GKE is the Google Cloud route that Hyperswitch documents, alongside its guides for local Minikube, AWS and Azure. If your payments or platform team must run Hyperswitch inside its own Google Cloud project, this is the path to plan against. Hyperswitch is an open source, composable payments platform licensed under Apache 2.0 and maintained by Juspay. Its production stack is built from a Router app service, a Scheduler (Producer and Consumer), PostgreSQL with a master and replica setup, and Redis for caching and the scheduler queue. Those four pieces, plus the cluster and networking underneath them, are what this page helps you size and stand up on GKE.

This page covers the Google Cloud side: the GKE cluster and node pools, the Terraform recipe that Juspay marks as validated, the choice between managed PostgreSQL and Redis services and self-run databases, and the Helm install of the stack. It does not cover the decisions that matter most before live traffic. Your PCI DSS scope depends on the vault model you choose, and the card vault (locker) is a separate service that your own compliance team must review. Connector credentials, test versus live keys, webhook endpoints and processor contracts are outside this page, as is the go-live sign-off. Confirm with your assessor which vault model applies before you size the cluster, because that choice changes what runs in the same project and who must be able to reach it.

Which GKE and managed service choices fit which team

This table compares the cluster mode, zonal layout, node pool design, PostgreSQL and Redis options for a self-hosted Hyperswitch stack on Google Cloud. Read each row against your team's Kubernetes experience and your appetite for operating stateful services, then confirm the Hyperswitch requirements before you commit. The main takeaway is that managed services shift patching and backups to Google, but they do not remove the need to verify Hyperswitch compatibility.

ChoiceFits whenYour team must operateConfirm against Hyperswitch docs
GKE Standard modeYour team wants direct control over node pools, machine types, DaemonSets and node-level tuning.Node pool upgrades, node sizing, autoscaler settings and node security configuration.Node pool layout and any node-level settings the Helm chart or Terraform recipe assumes.
GKE Autopilot modeYour team wants Google to manage nodes and prefers fewer node-level decisions.Pod resource requests and limits, workload policies and any features that restrict node access.Whether the chart's pods, storage classes and sidecars run under Autopilot constraints.
Regional clusterYour payment traffic needs control plane and node presence across several zones in one region.More nodes and cross-zone capacity to pay for, plus regional upgrade planning.Zone placement expectations in the Helm values and the database replica layout.
Zonal clusterYour environment is non-production or your team accepts a single-zone control plane and node failure domain.Recovery steps for a zone outage, since workloads have no second zone in the cluster.Whether the availability model in the deployment guide assumes multi-zone spread.
Cloud SQL for PostgreSQLYour team prefers Google to handle database provisioning, backups and patching for the Router and Scheduler databases.Instance sizing, high availability settings, backup retention, read replicas and major version upgrades.The primary and replica layout the architecture docs describe, and the PostgreSQL version Hyperswitch supports.
PostgreSQL on GKEYour team already runs stateful workloads on Kubernetes and needs the database inside the same cluster.Operator choice, storage, backups, failover testing, point-in-time recovery and upgrades.Replication setup, connection limits and the storage performance the stack expects.
Memorystore for RedisYour team wants a managed cache for Redis caching and the scheduler queue.Instance sizing, network access from the cluster, maintenance windows and failover settings.The Redis version and any eviction or persistence settings the scheduler queue requires.
Redis in the clusterYour team wants Redis close to the workload and accepts operating it on Kubernetes.Persistence, memory limits, failover, upgrades and monitoring of the cache and queue.Whether queue data loss on restart is acceptable for your scheduler workload.

How the GKE install sequence runs, step by step

The sequence takes an empty Google Cloud project to a running Hyperswitch stack on GKE, with a named check closing each stage so your team can confirm progress before moving on.

  1. Prepare the Google Cloud project and APIs

    Your cloud administrator creates or selects the project, confirms billing, enables the Compute Engine, Kubernetes Engine, Cloud SQL, Memorystore and Secret Manager APIs that the recipe needs, and sets up a service account with only the roles Terraform requires. Confirm the API list and role set against the current Terraform recipe, since both change with its versions. The step is done when a dry-run of the Terraform plan runs without permission errors and the project is recorded in your environment inventory.

  2. Run the Juspay Terraform recipe for network and cluster

    Your platform engineers check out Juspay's Terraform reference from the Hyperswitch repository and set variables for region, network ranges, cluster name and node pools. The recipe builds the VPC, subnets, GKE cluster and node pools, and the database and cache resources. Confirm the recipe's current version and its validated status against the repository before you apply it, because the recipe is the reference for this path and its variables change between releases. The step is done when the apply completes and the state file is stored in a remote backend your team controls.

  3. Verify cluster health and node labels

    Your platform team connects to the cluster with kubectl and checks that every node reports Ready, that system pods in kube-system are running, and that node pools carry the labels the Helm chart expects for pod placement. Confirm the required label keys against the chart documentation for your chart version. The step is done when all nodes are Ready, no system pod is in CrashLoopBackOff, and a test pod schedules onto each intended node pool.

  4. Provision PostgreSQL with a master and replica, and Redis

    Your team confirms the managed PostgreSQL and Redis resources from the recipe match the Hyperswitch architecture, which uses a PostgreSQL master with a replica and Redis for caching and the scheduler queue. Check whether the recipe provisions these or whether you must create them, and confirm that the chosen managed services and their versions are supported by the chart release you plan to install. The step is done when the master and replica are reachable from the GKE node network, a connection test from a pod succeeds for both databases, and credentials are stored in Secret Manager rather than in values files.

  5. Configure the Helm chart values

    Your engineers set the hyperswitch-stack chart values for database and Redis endpoints, secret references, ingress, replica counts and resource requests for Router, Scheduler and Control Center. Confirm that Superposition is either deployed or deliberately excluded, since the v1.124.0 release made it a required dependency before upgrading to that version. Render the chart locally with helm template and review the output. The step is done when the rendered manifests contain no plaintext credentials and every referenced secret exists in the target namespace.

  6. Install the Helm release

    Your platform team adds the Hyperswitch Helm repository, installs the chart into the namespace for the target environment with the reviewed values file, and watches the rollout until deployments report their desired replica count. Record the chart and application versions in your change record. The step is done when helm status reports deployed, all Router, Scheduler and Control Center pods are Running and Ready, and no pod restarts during the first few minutes.

  7. Run post-deployment checks on Router, Scheduler and Control Center

    Your team calls the Router health endpoint through the ingress, confirms the Scheduler consumer and producer pods are processing jobs without errors in their logs, and signs in to the Control Center to confirm it reaches the app server. Send a test payment through the sandbox connector to confirm the path end to end. The step is done when health checks pass from outside the cluster, scheduler logs show no repeated connection failures to PostgreSQL or Redis, and the Control Center loads and shows the test payment.

How Router, Scheduler, PostgreSQL and Redis map onto GKE

On GKE, the Router and the Scheduler run as separate workloads in the same cluster, and the split matters for how you size and scale them. The Router is the app server that handles payment requests, routing, retries, vaulting and observability. The Scheduler runs in two roles, Producer and Consumer, which pull and process queued background work. Plan one Kubernetes Deployment per role so each can be scaled, restarted and monitored on its own. Confirm the current workload names, replica defaults and resource settings in the Helm chart values for your release, because the chart, not this page, defines them. The architecture details are in the Hyperswitch architecture document.

PostgreSQL and Redis sit outside the Hyperswitch pods, and their connection model drives your GKE design. The architecture docs describe PostgreSQL with a master and a replica, and Redis for caching and the scheduler queue. On Google Cloud, you can run these as managed services or inside the cluster. Either way, decide up front which network path the pods use, how credentials reach them, and whether the Router reads from the replica. Keep the database and cache on private addresses reachable only from the GKE node pool. Ask your team to confirm the database and Redis endpoints and TLS settings that the chart expects before the first install.

The card vault (locker) is a separate Rust service from the juspay/hyperswitch-card-vault repository, and it should be deployed as its own workload with its own database, network policy and access rules rather than as a sidecar. Ingress and secrets handling must be decided before the first install, because the Router, Scheduler and vault all need database credentials, encryption keys and a controlled external entry point. Kubernetes stores Secrets unencrypted in etcd by default, so enable encryption at rest or use an external secret store, and restrict list and watch access with least-privilege RBAC. The vault and key services carry the PCI DSS questions covered in the vault and compliance sections of this page, so treat their placement as a scope decision, not only a deployment detail.

Where each Hyperswitch component runs in a GKE project

The diagram starts with client traffic entering through an ingress path into the GKE cluster, where the Router handles payment requests and the Scheduler runs its Producer and Consumer. The Router and Scheduler both depend on PostgreSQL and Redis, shown as separate managed services in the project, with a primary and a replica for the database. The card vault sits inside its own trust boundary, so card data crosses only through the Router and never reaches the Control Center or the data stores. Check that the vault's node pool, network path and key access match the boundary you plan to defend in your PCI DSS scope.

Components, node boundaries and data stores in one Google Cloud project.

Security controls to set before the first install on GKE

A GKE deployment of Hyperswitch puts payment routing, card vaulting and an operations console on one cluster, so the controls below need to be decided before the Helm install, not after. Each card covers one control area that your security team can verify in the cluster and the Control Center.

Encrypt secrets at rest

Kubernetes stores Secrets unencrypted in etcd by default, and Hyperswitch relies on Secrets for database credentials, Redis access and connector keys. Before install, decide whether GKE application-layer encryption with a Cloud KMS key covers these Secrets, or whether an external store is accessed through the Secrets Store CSI Driver. Confirm which option your team will run and who holds the key.

Secrets good practices

Restrict Secret access with RBAC

Anyone who can list or watch Secrets in a namespace can read every credential the Hyperswitch pods use. Define roles that allow only the Helm release and CI service accounts to read Secrets, and give human operators read access to workloads and logs instead. Review bindings for each environment namespace, since sandbox and production should not share Secret readers.

Apply Pod Security Standards

Router, Scheduler and supporting pods should run without privileged containers, host networking or root users. Set the Pod Security Standards label on each Hyperswitch namespace at the level your security baseline requires, and test the chart's security context settings against it in a non-production namespace first. Record any exceptions so the reviewer can see why they exist.

Limit Control Center sign-in

The Control Center accepts single sign-on through OpenID Connect only. SAML is not supported, SCIM and JIT provisioning are not available, users must be invited first, and roles are managed in Hyperswitch rather than mapped from your identity provider. Plan joiner and leaver steps for the Control Center as a separate process from your IdP, and confirm these limits against your identity policy.

Control Center SSO docs

Isolate database and vault traffic

PostgreSQL, Redis and any card vault component should accept connections only from the Hyperswitch pods that need them. Use Kubernetes network policies on the cluster, private IP connectivity for Cloud SQL and Memorystore, and firewall rules that keep databases off public addresses. Confirm the exact ports and egress destinations with your team before writing the policies.

Audit cluster and admin actions

Enable Cloud Audit Logs for the GKE control plane and retain Kubernetes audit logs for Secret reads, RBAC changes and workload updates. Also log Control Center admin actions and invitations, since those change who can move money. Decide where logs are stored, who can read them, and how long they are kept, and confirm the retention period with your compliance team.

Questions buyers ask before deploying Hyperswitch on GKE

What drives the cost of running Hyperswitch on GKE?

The cost comes from four places: the GKE cluster and its node pools, the managed PostgreSQL and Redis services, the staff time to build and run the stack, and any partner fees under a fixed-scope agreement. Google Cloud bills the cluster, nodes, database and cache on usage, so node count, machine types and database tier are the main levers. Hyperswitch runs Router and Scheduler services backed by PostgreSQL with a master and replica setup and by Redis, so the database and cache sizing matters as much as the nodes. Staff time is mostly one-time for the build and recurring for upgrades and on-call work. Ask any quote to list each cloud resource, who pays for it, and which items recur monthly.

Can our own team deploy Hyperswitch on GKE without a partner?

Yes, if your team already runs production Kubernetes and has cloud infrastructure skills. Hyperswitch documents Helm charts on Kubernetes with a guide for GCP, so the path is documented, but the work still spans the cluster, networking, managed data services, secrets, monitoring and payment-specific configuration. Your team needs people who can own the cluster after go-live, not only the first install. A partner makes sense when those skills are thin, when the timeline is fixed, or when you want a written scope and deliverables before work starts. Confirm internally who will hold on-call duty for the payment path before deciding.

How long does a Hyperswitch GKE deployment take?

No supplied figure gives a duration, so confirm it against your own environment rather than a generic estimate. The main drivers are how many environments you need (for example, sandbox, integration test and production), how much of the network and identity setup already exists in your Google Cloud organization, whether you use the Terraform recipe as written or change it, and how many payment processor connectors must be validated before go-live. Approvals for IAM roles, PCI scoping decisions and security review often take longer than the technical install. Ask for a timeline that lists each milestone and the client input it depends on.

What does the client need to provide for a GKE engagement?

You need a Google Cloud project or organization where the cluster will run, with rights to create networking, GKE, database, cache and IAM resources. You also need someone who can approve service accounts and secrets handling, and a team that understands Kubernetes well enough to operate it. On the payments side, you need signed processor contracts and test credentials for each connector you plan to enable, because Hyperswitch connects to more than 100 processors and each one needs its own setup. Compliance staff should decide early whether the card vault stays in your scope, since the self-hosted in-house PCI model leaves PCI DSS certification and data handling with the merchant.

How do Hyperswitch upgrades affect a GKE cluster?

Hyperswitch ships roughly monthly minor releases, and each GitHub release lists a compatibility matrix for the Control Center and web client versions. Upgrades therefore need a planned window, a staging run and a rollback path, not an ad hoc change. Some releases add required dependencies: the v1.124.0 notes state that Superposition became a required configuration dependency, so a Superposition service must be running before you upgrade to that version. On GKE, you also need to track Kubernetes versions. Kubernetes releases come about three times per year, and the version skew policy requires the API server to be upgraded one minor version at a time, before the nodes. Plan both upgrade tracks together.

Is the Hyperswitch Terraform recipe for GKE production-ready?

Treat the recipe as a starting point, not a finished production baseline. The GKE path is documented by Hyperswitch, and the Terraform recipe for this path is described as validated by Juspay, but validation does not replace your own review of network layout, node pool sizing, database high availability, backups, secrets and access control. Before using it, check the recipe version against the Hyperswitch release you plan to run, confirm which managed services it creates, and decide how state and environment variables will be stored. A partner can review the recipe against your controls, but that review is scoped work, not a certification.

Does the Kubernetes secrets model need extra work on GKE?

Yes. Kubernetes stores Secrets unencrypted in etcd by default, and the Kubernetes good practices guidance says administrators should configure encryption at rest, restrict list and watch access with least-privilege RBAC, or use an external store through the Secrets Store CSI Driver. On GKE, decide early whether Google-managed encryption is enough for your policy or whether you need application-layer encryption with a key you control. Hyperswitch holds connector credentials and vault keys, so the access list for these secrets should be short and reviewed. Confirm the approach with your security team before loading live credentials.

Who is responsible for the GKE cluster after go-live?

Your organization stays responsible for running the cluster, the managed database and cache, and the Hyperswitch stack unless a retainer covers that work. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Ask who handles node upgrades, Kubernetes version changes, on-call response, backup restore tests and Hyperswitch release upgrades. The answers should appear as named responsibilities in the written scope, with recurring costs listed separately from the build.

Keeping the GKE deployment current after go-live

After go-live, the GKE stack changes in three places: Hyperswitch releases, Kubernetes versions and the cloud infrastructure underneath them. The cards below cover the order in which those changes should land and how each one is tested before it reaches production.

Track monthly minor releases

Hyperswitch ships roughly monthly minor releases, and each GitHub release includes a compatibility matrix for Control Center and web client versions. Before planning any upgrade, read the matrix for the target version and confirm that the Control Center and SDK versions you run are listed as compatible. Also check the v1.124.0 notes if you are upgrading from an older line, because Superposition became a required dependency in that release.

Hyperswitch releases

Respect Kubernetes support windows

The Kubernetes project maintains only the three most recent minor releases, so a GKE cluster on an older minor version will eventually fall out of support. Check the release calendar on kubernetes.io before each planning cycle and confirm which versions GKE currently offers on its release channels. Budget the upgrade work before a version reaches end of life rather than after.

Kubernetes releases

Step one minor version at a time

The Kubernetes version skew policy requires that the API server be upgraded one minor version at a time. If your cluster is more than one minor version behind, plan intermediate upgrades instead of jumping to the target. Confirm that the Hyperswitch chart version you run supports each Kubernetes version along the path before you start.

Version skew policy

Upgrade the control plane first

The skew policy requires the control plane to move before the nodes: the API server first, then the controller manager and scheduler, then node pools. On GKE, upgrade the control plane, confirm the Hyperswitch Router and Scheduler pods still run, and only then roll the node pools. Kubelets may be up to three minor versions older than the API server, which gives you room to stage node pool upgrades instead of doing them in one window.

Stage releases in separate environments

Promote each Hyperswitch and Kubernetes change through a non-production environment that mirrors the production chart values, Superposition and database settings. Run the same Helm upgrade, connector checks and webhook tests there before production. Keep test and live processor credentials separate, so a staging upgrade cannot touch live connectors.

How the GKE choice affects PCI DSS scope

Choosing Google Cloud and GKE does not change who carries PCI DSS responsibility. In the self-hosted, in-house PCI model described in the Hyperswitch docs, the merchant is fully responsible for PCI DSS certification and data handling, whatever cloud the cluster runs in. The GKE path changes where the stack runs and which managed services you consume, but it does not transfer the assessment to Google Cloud or to Juspay. Treat the cloud provider's shared responsibility documentation as an input to your own assessment, not as a substitute for it.

The vault model you choose decides whether card data reaches the cluster at all. In the in-house model, the Hyperswitch card vault, a separate Rust service in the juspay/hyperswitch-card-vault repository, stores card data inside your environment, so the vault workloads, their database, their keys and the nodes that run them all fall within your cardholder data environment. With an external PCI vault provider, or with the SaaS Hyperswitch Vault, the orchestration layer on GKE can stay out of card storage, but you still need to confirm how card data is captured and whether any path through your ingress, egress proxy or logs touches it. Read the self-hosted and outsourced PCI model before you choose.

Before you fix the node pool layout, network design and namespace plan, bring your QSA or compliance lead into the design review. Ask them to confirm the cardholder data environment boundary, whether the GKE cluster, its node pools, the managed PostgreSQL and Redis services and the logging and monitoring stack are in scope, and what evidence they will need from the cluster, such as access reviews, encryption settings and change records. Decisions made early, such as a shared cluster for test and live traffic or a shared logging sink, are hard to unwind later. This page does not give a compliance determination; the assessor's view governs.

What DeployOpen hands over at the end of a GKE deployment

The handover sequence turns a running Hyperswitch stack on Google Cloud into something your own team can operate, audit and change after DeployOpen steps back. Each item is delivered, reviewed and accepted in writing before the engagement closes.

  1. Compile architecture and network records

    DeployOpen documents the GKE cluster, node pools, VPC layout, subnets, ingress path, egress route to payment processors and the placement of PostgreSQL and Redis. Your network and security team reviews the diagram against the cloud project as built and confirms the addresses, firewall rules and private endpoints they expect. The step is done when the records match the live environment and your reviewer has signed off on the differences list, if any.

  2. Hand over Terraform state and access

    DeployOpen confirms where the Terraform state for the GKE recipe and the managed database and cache resources is stored, how it is locked, and which identities can read or apply it. You own the state bucket and the service accounts that run Terraform, and your team holds the access approvals. The step closes when your engineer runs a plan from a clean checkout and sees no unexpected changes.

  3. Deliver Helm values under version control

    The Helm values files for each environment are committed to your repository, with secrets referenced from your secret manager rather than stored in plain text. DeployOpen records the chart version and the Hyperswitch component versions used for the install. Your team confirms it can render the chart from the repository and reproduce the running release. The step is complete when a fresh render matches the deployed state.

  4. Provide upgrade and rollback runbooks

    DeployOpen writes step-by-step runbooks for upgrading the Hyperswitch release, rolling back a failed upgrade and handling changes to required dependencies noted in release notes. The runbooks name the owner, the pre-checks and the verification commands for each action. Your operators walk through one dry run in a non-production environment, and the step is accepted when they can complete it without DeployOpen present.

  5. Show PostgreSQL backup and restore evidence

    DeployOpen provides the backup configuration for the managed PostgreSQL instance, the retention settings and a record of at least one test restore into a separate instance. The restore record shows the time taken, the data checked and who ran it. Your database owner reviews the evidence and confirms the recovery approach meets your own recovery objectives, which you set. The step closes when the restore evidence is filed with the handover pack.

  6. Configure monitoring and alert routing

    DeployOpen delivers the dashboards, health checks and alert rules configured for the cluster and Hyperswitch services, with the notification channels connected to your on-call tooling. Your operations team triggers a controlled test alert and confirms it reaches the right person. The step is done when each alert has a documented owner and a recorded test result.

  7. Review the go-live checklist together

    DeployOpen and your team walk through the self-hosted go-live checklist item by item, including processor contracts and live credentials, key handling, webhooks, PCI validation status and monitoring. Items that remain open are assigned an owner and a date you agree. You approve the handover in writing, and the step closes only when every item is either done or formally accepted as an open risk.

How DeployOpen scopes and delivers a Hyperswitch GKE deployment

A Hyperswitch GKE deployment touches cluster design, managed databases, secrets, identity and payment compliance at once, so the scope has to be written down before anyone provisions anything. The cards below cover what DeployOpen agrees in writing, where the work runs, and what stays with your team after go-live.

Written scope before any build

DeployOpen works on fixed-scope engagements, so the cluster layout, the Hyperswitch components you deploy, the environments and the acceptance checks are agreed in writing before work starts. A quote follows from that written scope, which means the scope document is where cost and timeline get decided. Ask for the scope to name the Google Cloud project, the regions and the components by name.

Work inside your Google Cloud project

DeployOpen builds the GKE cluster, node pools, networking, managed PostgreSQL and Redis, and the Helm install inside your own Google Cloud project, under your billing account and IAM model. Your team keeps ownership of the project, the state backend and the service accounts that the deployment creates. Confirm early who holds the owner role and where Terraform state is stored.

Hardening and secrets handling

Delivery includes hardening the cluster against the Kubernetes Pod Security Standards, restricting RBAC, and deciding how Secrets are protected at rest and read by pods. Kubernetes stores Secrets unencrypted in etcd by default, so the scope should state whether Google-managed encryption, customer-managed keys or an external secret store is used. Those choices belong in the written scope, not in a later ticket.

Backups and recovery drills

DeployOpen plans backups for the parts of the stack that hold state: managed PostgreSQL, Redis where persistence is used, and cluster configuration. The scope should name the recovery point and recovery time targets your organization sets, and whether a restore is tested in a non-production environment. Ask for the restore test to be a written deliverable with a date.

Documentation for your audit trail

Deliverables include architecture diagrams, runbooks, change records and the configuration evidence your security and compliance teams request during reviews. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Your assessor or certification body makes that determination, so confirm which evidence formats they accept.

Support and upgrades after handover

Ongoing support, Hyperswitch version upgrades, Kubernetes minor version upgrades and continuous testing are available as retainers after the initial build. Upgrades matter here because Hyperswitch ships monthly minor releases and Kubernetes support windows end on fixed dates. Ask the retainer quote to list which upgrades, patch cycles and on-call hours are included.

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.