NEW Kubernetes security checklist 2026, free for engineering teams Download →
WEBINAR Platform engineering for a 20-engineer team. 8 PM, Thu 06.11 Save a seat →
BLOG New post: When Kubernetes is the wrong answer Read now →
1/3
EN
Blog
Move fast · Stay in control
Solutions
Services
Process
Work
Blog
Quick searchCtrl K
Contact
← WORKCASE STUDY · PAYMENT GATEWAY
OnePay

OnePay. From a legacy system to microservices on HA Kubernetes, on-premise.

Migrating OnePay’s legacy payment system to microservices on a highly available Kubernetes platform (RKE2) in their own data center, fronted by DSR load balancers with TCP state sync. Services talk over a service mesh with mandatory mTLS, every extracted service passes a DevSecOps pipeline before production — all designed for PCI DSS from day one.

RKE2 HAIPVS · DSRTCP STATE SYNCISTIO · MTLSDEVSECOPSPCI DSS
0TRANSACTIONS DROPPED ON FAILOVER
< 1 secLOAD BALANCER FAILOVER
99,99%90-DAY UPTIME
CUSTOMEROnePay · card and wallet payment gateway
INDUSTRYDigital payments
SCOPELegacy → microservices migration · HA Kubernetes (RKE2) · DSR load balancing · Service mesh & mTLS · DevSecOps · PCI DSS
TIMELINE10 months · 2024–2025
TEAM4 TinyOrbit engineers with OnePay’s engineering team
A TinyOrbit engineer and an OnePay engineer checking the load balancer pair in the on-premise data center
The RKE2 cluster and DSR load balancer pair live in OnePay’s own data center; failover is rehearsed at peak hours. ON-PREMISE · HA
CONTEXT

One monolith handling payments, where every change was a risk.

OnePay’s payment system ran on a legacy application and a set of physical servers on-premise, as compliance requires. Every upgrade needed a night-time maintenance window; scaling meant buying more machines.

The brief: move gradually to microservices on highly available Kubernetes, still inside OnePay’s data center, without dropping a transaction when any component fails — and, this being a payment system inside PCI DSS scope, every service-to-service connection had to be encrypted, network segmentation had to be provable, and every new service security-checked inside the pipeline.

CHALLENGES
01A years-old monolith with little documentation and tight database coupling; it could not be paused for a rewrite.
02The traditional load balancer was both a bottleneck and a single point of failure; every failover dropped merchants’ open TCP connections.
03On-premise Kubernetes needed real HA: control plane, etcd, storage and network all had to survive losing a node or a rack.
04Splitting the monolith into many services meant many pipelines, images and internal connections; manual security review and IP-based firewalls would not keep up.
05PCI DSS scope had to stay small and provable to the QSA — where card data flows, who accesses it, how it is encrypted — on an architecture changing every month.
BEFORE → AFTER

The same payment system, one year on.

AREABEFOREAFTER
InfrastructureA monolith on physical servers, scaled by buying machinesMicroservices on HA RKE2, scaled by pod
FailoverA single load balancer; failover dropped every open sessionA DSR LB pair with TCP sync, sub-second failover, 0 sessions dropped
Maintenance18 night maintenance windows a yearRolling updates during business hours
Internal networkIP-based firewalls, unencrypted service-to-service trafficService mesh, 100% mTLS, identity-based policies
PipelineManual scans before each pentest12 DevSecOps gates on every merge request
PCI DSS6 weeks of manual evidence collectionEvidence generated per release, assessment with 0 findings
ARCHITECTURE

Four layers inside OnePay’s data center.

From bare metal across two rack rows up to RKE2 with Istio ambient; the DSR load balancer pair sits in the network layer.

PATHWhere a transaction travels.
MERCHANTTCP · TLS
LB A · ACTIVEIPVS · DSR
LB B · STANDBYIPVS · DSR
TCP STATE SYNC · CONNTRACKD
RKE2 · PAYMENT PODSISTIO AMBIENT · MTLS
BANKS · PSPEGRESS GATEWAY

DSR: return packets go straight from the pods to the merchant without passing back through the load balancer, so the LB only handles the inbound side and never bottlenecks. When LB A fails, LB B already holds the TCP connection table, so open sessions continue and merchants never reconnect.

APPROACH

Six phases, each with a verifiable output.

TIMELINE42 WEEKS · 6 PHASES
015 WEEKS
028 WEEKS
036 WEEKS
045 WEEKS
056 WEEKS
0612 WEEKS
015 WEEKS
Assessment & decomposition roadmap Domain analysis and a dependency map of the monolith; a strangler-pattern order of extraction, low-risk paths first (lookups, reconciliation), the transaction core last.
OUTPUTA 9-month roadmap with 6 cutovers, each with a rollback plan.
028 WEEKS
HA Kubernetes platform (RKE2) RKE2 on bare metal across two rack rows: 3 control-plane nodes, etcd with scheduled snapshots, Longhorn for persistent storage, Cilium for networking; GitOps with Argo CD, secrets in Vault.
OUTPUTThe cluster survives losing a node or a rack with no service interruption.
036 WEEKS
DSR load balancer with TCP state sync A layer-4 load balancer pair running Direct Server Return: return packets go straight from the pods to the merchant, bypassing the LB, so it never bottlenecks. The TCP connection table syncs continuously between the two nodes; the survivor carries open sessions when the other fails.
OUTPUTFailover under 1 second, 0 dropped connections in testing.
045 WEEKS
Service mesh & mandatory mTLS Istio in ambient mode: every service-to-service connection is mTLS-encrypted with auto-rotated certificates and workload identity instead of IPs; authorization policies allow only the right service to call the right service; card data is isolated in its own namespace.
OUTPUT100% of internal traffic on mTLS; network segmentation exportable as evidence for the QSA.
056 WEEKS
DevSecOps pipeline strategy One standard pipeline for every extracted service: SAST, SCA, secret scanning, image and IaC scanning, OPA policies blocking misconfiguration; images signed with Sigstore, Kyverno admitting only signed images; results posted straight to the merge request.
OUTPUTEvery service reaches production through the same 12 gates; critical findings are blocked before merge.
0612 WEEKS
Cutover, PCI DSS & handover Extract services one by one, run them alongside the monolith, shift traffic by percentage; OpenTelemetry and SLOs per service. Map the 12 PCI DSS requirements to technical controls with evidence generated per release; train OnePay’s team and share on-call.
OUTPUTThe transaction core fully migrated; the PCI DSS assessment on the new architecture closed with no findings.
RESULTS

After 90 days on the new platform.

0TRANSACTIONS DROPPED ON FAILOVERPulling the power on one load balancer and one node at peak hour in a drill: no transaction failed.
< 1 secLOAD BALANCER FAILOVERThanks to TCP state sync, merchants never reconnect; previously every failover dropped all open sessions.
18 → 0NIGHT MAINTENANCE WINDOWS PER YEARRolling updates per service and per node; upgrades happen during business hours.
0CRITICAL CVES REACHING PRODUCTION12 security gates on every merge request; only signed, scanned images are admitted to the cluster.
100%INTERNAL TRAFFIC ON MTLSThe service mesh encrypts and authenticates every service-to-service connection; certificates rotate automatically, nobody manages keys by hand.
0FINDINGS · PCI DSS ASSESSMENTSegmentation, encryption and access control all export evidence straight from the system; assessment prep fell from 6 weeks to 10 days.
RKE2CILIUMLONGHORNISTIO AMBIENTMTLSARGO CDVAULTIPVS · DSRKEEPALIVEDCONNTRACKDGITLAB CISEMGREPTRIVYOPASIGSTOREKYVERNOOPENTELEMETRYGRAFANA
“

During the drill where we pulled the power on a load balancer at peak hour, the whole room watched the dashboard and not one transaction failed. That was the moment we really trusted the new platform.

OnePayHead of Infrastructure · OnePay
HANDOVER

OnePay keeps the keys.

We stepped out once OnePay’s team could upgrade RKE2 on schedule, run quarterly failover drills, extract the next service from the monolith and add new security gates to the pipeline on their own.

✓Runbooks for load-balancer failover, node loss and rack loss; drilled every quarter.
✓A golden path for extracting the next service: template, a DevSecOps pipeline with all 12 gates, SLO and dashboard ready-made.
✓A runbook per security finding type, with a remediation SLA per severity.
✓A PCI DSS evidence pack generated per release: mesh policies, gate results, the list of signed images.
✓Two weeks of training and one month of shared on-call after the final cutover.
NEXT CASEMegaCore: an IaaS platform run by GitOps, from rack to API.IaaS design · Automation · GitOps
MegaCoreRead the case →
SOLUTIONSThe five things we do.
01Platform engineeringGolden paths, GitOps and an IDP for engineersSee the solution →02DevSecOps12 security gates inside the pipelineSee the solution →03Hybrid & Cloud MigrationOn-prem, cloud migration, hybrid operationsSee the solution →04SRE & ObservabilitySLOs, on-call and the Grafana stackSee the solution →05AI PlatformHosted LLMs, agent gateway, MCP gatewaySee the solution →
CONTACT

Tell us about your infrastructure.

Book a call →

DevSecOps, platform engineering and cloud consulting for engineering teams in Vietnam and the region.

Book a call →
SOLUTIONS Platform engineeringDevSecOpsHybrid & Cloud MigrationSRE & ObservabilityAI Platform
COMPANY ProcessTrainingSelected workClient reviewsCareers
RESOURCES BlogCompany profile (PDF)Security checklistRSS
CONTACT [email protected] +84 867 465 981 316 Le Trong Tan, Phuong Liet Ward, Hanoi MON–FRI · 9:00–18:00 · GMT+7
TINYORBIT TECHNOLOGY AND SOLUTION COMPANY LIMITEDTAX ID 0111138003REGISTERED IN HANOI · 07.2025
All systems operational
© 2026 TinyOrbit TermsPrivacyCookie
GitHubLinkedInXFacebook