Infrastructure as Data

Define a template once. Lynq creates, updates and removes each customer’s stack as their database row changes.

The diagram follows the terminal demo. Lynq reads MySQL rows and reconciles Kubernetes resources. Faint resource symbols show kinds the demo has not applied. PostgreSQL, MongoDB, Microsoft SQL Server, MariaDB and Oracle Database are future integration candidates.
mysql customers ⇄ kubectl
cluster · 2 LynqNodes↻LynqHub sync
  • acme-webDeploymentService
  • gamma-webDeploymentService

Rows without a LynqNode: 1

The table and cluster are simulated. Lynq renders each object. A live LynqHub syncs every 30s.Run on a real cluster →

Run it on your cluster

Kubernetes 1.28+ with cert-manager.

Local Quick Start →
helm repo add lynq https://k8s-lynq.github.io/lynqhelm install lynq lynq/lynq -n lynq-system --create-namespace --set namespace.create=false

How it works

Change a row. The cluster follows.

Follow one row from insert to cleanup.

The cluster keeps one set of resources per active row.
The MySQL mark appears, a table outline draws in, and rows acme, beta and gamma appear one at a time. An active row and its matching Kubernetes stack share an identity shape. Acme and gamma each get a stack, while inactive beta gets none. The resources start updating and turn Ready. A new row, delta, is inserted and its stack appears. Someone changes one of acme's resources by hand; it turns red, and Lynq applies the template again and puts it back. Then gamma is deactivated and its stack is removed. At every step the resources in the cluster match the active rows in the table.
  1. 01Insert a rowINSERT INTO customers … active = TRUEThe LynqHub reads it on the next sync (every 30s by default).Read more: Insert a row →
  2. 02Apply resourcesLynqNode acme-web → Deployment, ServiceLynq uses Server-Side Apply in dependIds order.Read more: Apply resources →
  3. 03Wait for readinessReady=True on the LynqNodeLynq checks readiness by resource kind, with a timeout.Read more: Wait for readiness →
  4. 04Correct driftkubectl edit deployment acme-webWatches and periodic reapply restore the template’s values.Read more: Correct drift →
  5. 05Deactivate the rowUPDATE customers SET active = FALSELynq deletes the LynqNode and cleans up its resources. Use deletionPolicy: Retain to keep a resource.Read more: Deactivate the row →

Why Lynq

Why not a script, Helm, or your own operator?

Scripts and CI jobs

A script or CI job acts once. Lynq keeps reconciling, reversing drift and cleaning up resources when rows are deleted.

Helm per customer

Helm gives you one release per row to install, upgrade and delete. With Lynq the row drives that lifecycle, and maxSkew paces template changes.

Your own operator

You maintain the controller, CRDs, RBAC and upgrades. Lynq ships with lifecycle policies, metrics and runbooks.

Lynq is not the right tool for everything. See when to use Lynq.

Safe at scale

Roll out template changes gradually.

maxSkew limits how many LynqNodes can update at once. Each LynqNode holds its slot until it is Ready.

The same change, with maxSkew set to 3. A slot frees when its LynqNode is Ready.
Nine ready Kubernetes stacks are running v1. A LynqForm image edit from nginx:1.27 to nginx:1.28 queues updates for those stacks. Without a cap, the updates rush in together. In this example some stay Pending and others fail. That outcome holds and the entire scene fades away. Three maxSkew slots appear, introducing a separate example of the same change with maxSkew set to 3. The edited form, original queue and ready v1 stacks fade back in. At most three updates run at once. A slow update holds its slot while Ready stacks release the other slots for waiting requests. In this example all nine stacks reach Ready on v2 in their original positions.

Operate it

See what failed and how to fix it.

Every failure state has a metric, an alert and a runbook. The Lynq Dashboard shows every Hub, Form and Node and highlights what needs attention.

Lynq Dashboard Topology view. Two LynqHubs named customers: the one in namespace customers has 2 of 2 nodes ready, acme-web and gamma-web under the web LynqForm; the one in troubleshoot has 1 of 6 ready, under the typo, slow and settings LynqForms, and its failed nodes are red.
Topology view: Hub → Form → Node.
Topology view in Problem Mode reporting 8 problems: the typo, slow and settings LynqForms and the failed LynqNodes acme-typo, gamma-typo, acme-slow, gamma-slow and acme-settings are outlined in red; the healthy hub, the web LynqForm and its nodes are faded.
Problem Mode: only what needs attention.

Examples

What people build with it.

Start with one table.

Install Lynq with Helm, connect a LynqHub to a table, and apply a LynqForm. The Local Quick Start takes about 10 minutes.

helm repo add lynq https://k8s-lynq.github.io/lynqhelm install lynq lynq/lynq -n lynq-system --create-namespace --set namespace.create=false