← WORKCASE STUDY · PAYMENT GATEWAY
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
CONTEXTOne 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
ARCHITECTUREFour 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.
→
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.
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
HANDOVEROnePay 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.