Case StudyHow Enkrypt AI ships its AI security platform into air-gapped KubernetesRead the case study
Skip to main content

Case Study

Hearzap's Cloud-Native Transformation: From Monolithic VMs to a Kubernetes Platform on GKE


Hearzap's platform powers hearing tests, audiologist consultations, device sales, and after-sales care across hundreds of centres in India. The business had outgrown the infrastructure underneath it. The V2 platform was a monolith running on bare virtual machines with Apache in front — an architecture that worked at a smaller scale but had started to cap how fast the team could ship and how reliably the platform stayed up.

CloudRaft worked with Hearzap to rebuild that foundation — an end-to-end infrastructure and data-platform modernization. We migrated the platform to a cloud-native Kubernetes architecture on Google Cloud, decomposed the monolith into independent services, and put a GitOps delivery pipeline and zero-trust security model around it. This case study covers how the migration was planned and what changed as a result.

About the client

Hearzap is an Indian digital hearing-care company offering hearing assessments, audiologist consultations, and hearing aids through a network of clinics, a retail presence, and an online platform. In 2026 it acquired Amplifon India's hearing-healthcare business, growing to more than 400 centres nationwide. A platform that serves that many locations — plus the customers booking tests and buying devices online — needs infrastructure that scales with demand and stays available during business hours.

Business impact

Deployments

Minutes of automated GitOps sync

from hours of manual VM work

Availability

Multi-zone high availability

from single points of failure

Scaling

Automatic horizontal autoscaling

from manual vertical sizing

Security posture

Zero-trust + Workload Identity

from ad hoc secrets and access

Operations

GitOps automation with self-healing

from manual VM management

The challenge

The V2 platform ran as a monolith on individual VMs, each running Apache and configured by hand. That model held up early on, but as the business scaled it created problems that compounded on each other.

  • No autoscaling. Capacity was static. Peak hours caused performance degradation, while off-peak hours left expensive VMs mostly idle. The team paid for a fixed fleet sized for the busiest moment of the day.
  • Single points of failure. Each service ran on a single VM with no redundancy. A VM failure meant a full outage for that component, with no automatic recovery.
  • Manual, disruptive deployments. Every release meant full service restarts and downtime. There were no rolling updates, no automated rollback, and deployments took hours of manual VM configuration.
  • Configuration drift. Staging and production drifted apart because changes were applied by hand. There was no single source of truth for the state of the infrastructure.
  • Security gaps. Secrets were not centrally managed, TLS was handled manually, and access controls had grown ad hoc as the fleet expanded.
  • Operational overhead. Every new service meant manually provisioning a VM, patching the OS, and configuring Apache. The team spent more time running infrastructure than building product.

Each of these is survivable on its own. Together, they meant that growth made the platform more fragile and more expensive to operate, not less.

One Kubernetes platform to replace the VM fleet

We migrated Hearzap from monolithic VMs to a cloud-native Kubernetes architecture on Google Cloud, built so that the platform scales with demand, recovers from failures on its own, and is deployed entirely from Git.

Before and after a monolith-to-Kubernetes migration: a monolith on single VMs migrated to a multi-zone GKE cluster with separate autoscaling application and database node pools, GitOps delivery via ArgoCD, and operator-managed PostgreSQL, Kafka, Valkey, and MongoDB.

Figure 1. From a monolith on single VMs to a multi-zone, GitOps-driven Kubernetes platform.

Infrastructure foundation

The base of the platform is a regional GKE (Google Kubernetes Engine) cluster spread across multiple availability zones, so the loss of a single zone does not take the platform down. Networking is VPC-native, with private subnets and controlled egress.

Workloads are split into separate autoscaling node pools for application and database workloads. Separating the pools keeps database workloads from contending with application traffic for the same resources, and lets each scale on its own signal.

The entire environment is defined as code with OpenTofu, with remote state in a GCS backend. The infrastructure is reproducible and reviewable, rather than something that lives only in the current state of a running VM.

Platform services, run by operators

Rather than hand-roll stateful services, we deployed battle-tested Kubernetes operators so that databases, brokers, and caches are managed by the platform rather than by people:

  • Ingress and routing: Traefik for load balancing, TLS termination, and routing.
  • GitOps delivery: ArgoCD, continuously syncing the cluster to Git with self-healing and drift detection.
  • Certificate management: cert-manager for automated TLS issuance and renewal.
  • Secrets: External Secrets Operator syncing from GCP Secret Manager using Workload Identity, so no secret is stored in the cluster or in Git.
  • Caching: Valkey (Redis-compatible), running replicated for high availability.
  • Messaging: a multi-broker Kafka cluster, run by the Strimzi operator and spread across zones.
  • PostgreSQL: CloudNativePG (CNPG) managing multiple highly available PostgreSQL clusters, each with a primary-plus-replica topology and automated backups.
  • MongoDB: MongoDB replica sets, managed by the Percona operator.
  • Observability: Prometheus, Grafana, Loki, and Tempo for metrics, logs, and distributed tracing.
  • Config reloads: Stakater Reloader, to restart pods automatically when a ConfigMap or Secret changes.

Decomposing the monolith

The monolith was broken into around seven independent services — spanning authentication, core business operations, data management, notifications, and content management — each deployable and scalable on its own.

Delivery runs through GitOps. Every infrastructure and application manifest is version-controlled, and ArgoCD keeps the cluster reconciled to the desired state in Git. Environment differences are expressed as Kustomize overlays, so staging and production share one base and can no longer silently drift apart. Every change is validated in CI — manifests are built and schema-checked — so a broken change is caught before it reaches the cluster, not after a failed deploy.

Security by default

Identity and access were rebuilt around least privilege:

  • Workload Identity Federation maps each Kubernetes service account to a GCP service account, so every service authenticates to Google Cloud APIs with its own identity instead of a shared credential.
  • Group-based RBAC maps Google Workspace groups to Kubernetes ClusterRoles, so team access is managed where the rest of identity already lives.
  • The control plane is private, with no public exposure, and administrative access runs through an identity-aware proxy rather than open SSH.

Results

The application code moved to containers; almost everything else that made the old platform slow and fragile was replaced.

Deployments
BeforeHours of manual VM work, with downtime
AfterMinutes of automated GitOps sync, zero-downtime rolling updates
Reliability
BeforeSingle VM per component, no recovery
AfterSelf-healing pods, nodes replaced automatically
Databases
BeforeSingle instance, manual recovery
AfterHA PostgreSQL clusters with primary + replica and failover
Messaging
BeforeNo message broker
AfterMulti-broker Kafka cluster distributed across zones
Scaling
BeforeManual vertical resizing
AfterNode-pool autoscaling, multi-zone distribution, HPA-ready
Environments
BeforeDrifted between staging and production
AfterOne Kustomize base, overlays per environment
Secrets
BeforeNot centrally managed
AfterGCP Secret Manager synced via External Secrets
Access
BeforeAd hoc, shared credentials
AfterPrivate cluster, proxied admin access, Workload Identity

A few of the changes are worth calling out:

  • Deployments stopped being events. Rolling updates keep services available during every release, and ArgoCD's self-heal reconciles the cluster back to the desired state automatically. A deploy is a Git merge, not a maintenance window.
  • High availability is the default, not a project. Every PostgreSQL cluster runs primary-plus-replica with automatic failover, Kafka's brokers are distributed across zones, and the cache runs replicated. A single pod, node, or zone failure no longer means an outage.
  • Capacity follows demand. Node pools scale up for peak hours and back down off-peak, so the platform stops paying for a fleet sized for its busiest minute. Separate application and database pools keep the two from competing for resources.
  • The security posture changed shape. No secrets on disk, no shared cloud credentials — every service authenticates as itself, and secrets are centralized in GCP Secret Manager.

What we would tell other teams migrating off VMs

  • Let operators run your stateful services. PostgreSQL, Kafka, MongoDB, and Valkey are the parts of a migration most likely to go wrong. Mature operators (CNPG, Strimzi, Percona) give you failover, backups, and replica topology as declared configuration instead of runbooks.
  • Make GitOps the source of truth from day one. Once ArgoCD reconciles the cluster to Git, configuration drift stops being a category of problem. Staging and production share a base, and "what's actually running" is answerable by reading a repository.
  • Separate node pools by workload. Keeping databases off the application pool prevents resource contention and lets each scale on its own signal — a small decision early that pays off under load.
  • Replace shared credentials with workload identity. Mapping each service account to a cloud identity removes an entire class of secret-handling risk and makes access auditable per service.
  • Validate manifests in CI. A kustomize build plus kubeconform gate catches broken or non-conformant manifests before they reach the cluster, not after a failed sync.

Technology stack

LayerTechnology
Cloud and clusterGoogle Cloud, regional GKE (multi-zone), VPC-native networking
Infrastructure as codeOpenTofu with GCS remote state
DeliveryArgoCD (GitOps), Kustomize overlays, kubeconform + kustomize CI validation
Ingress and TLSTraefik, cert-manager
DatabasesCloudNativePG (PostgreSQL), Percona MongoDB Operator
Messaging and cachingStrimzi Kafka Operator, Valkey
Secrets and identityExternal Secrets Operator, GCP Secret Manager, Workload Identity Federation
ObservabilityPrometheus, Grafana, Loki, Tempo
Access controlPrivate control plane, proxied admin access, Google Workspace group RBAC

Running a monolith that has outgrown its infrastructure?

If your platform is held back by manual deployments, single points of failure, or infrastructure that can't scale with demand, we can help you migrate to a cloud-native Kubernetes architecture without betting the business on a big-bang cutover.