About
⚓️ Kubernetes-Native Database-Driven Provisioning Workflow Automation
Productivity & AutomationMeasured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
Lynq
Infrastructure as Data for Kubernetes
Your database already knows what should run. Lynq turns each row into a complete set of Kubernetes resources, keeps it in sync as the row changes, and cleans it up when the row goes away — without writing a controller.
What it does
You run one stack per customer, device, project or preview branch, and the list of what should exist is already in a database table. Lynq keeps the cluster matching that table:
- Insert a row → its Deployments, Services, Ingresses and anything else you template are created.
- Change a row → the change is applied to its resources.
- Someone edits a resource by hand → Lynq puts the template's values back.
- Deactivate or delete the row → its resources are cleaned up (or kept, if you say so).
A table, a hub that reads it, and a form that says what to create for each row:
-- examples/customer-web/rows.sql
INSERT INTO customers (id, active, image, plan) VALUES
('acme', TRUE, 'nginx:1.27', 'pro'),
('beta', FALSE, 'nginx:1.27', 'basic'),
('gamma', TRUE, 'nginx:1.27', 'basic');
# examples/customer-web/lynqform.yaml (excerpt)
apiVersion: operator.lynq.sh/v1
kind: LynqForm
metadata:
name: web
spec:
hubId: customers # the LynqHub that reads the table
deployments:
- id: app
nameTemplate: "{{ .uid }}-web"
spec:
apiVersion: apps/v1
kind: Deployment
# … image: "{{ .image }}", labels with "{{ .plan }}"
services:
- id: svc
nameTemplate: "{{ .uid }}-web"
dependIds: [app] # applied after the Deployment
# …
Result: acme-web and gamma-web, each with its Deployment and Service. beta gets nothing until
it is activated. Full files: examples/customer-web/.
How it works
| Resource | What it is |
|---|---|
| LynqHub | Connects to your database (MySQL) and reads the rows every syncInterval (default 30s). Maps columns to template variables. |
| LynqForm | The blueprint: the resources to create for each active row, as Go templates (with Sprig functions). |
| LynqNode | Created for every active row × LynqForm. Applies its resources with Server-Side Apply, in dependency order, and reports whether they are Ready. |
Lifecycle policies decide what happens on creation, deletion and conflicts with other tools
(policies); dependIds and readiness gates order the
apply (dependencies).
Safe to change at scale
A template change does not hit every row at once. maxSkew lets only a few LynqNodes update at a
time; one that is not Ready holds its slot, so the rollout waits for it.
Every failure state has a Prometheus metric, an alert rule and a runbook. The Lynq Dashboard shows every Hub, Form and Node and highlights the ones that need you:
Is it a fit?
Good fit when a table already describes what should exist (one row per stack), the stacks share a structure and differ by values, and they change often enough that doing it by hand or per pull request costs you.
What Lynq does not do:
- One datasource today: MySQL (tables or views). PostgreSQL is on the roadmap.
- Polling, not change capture: a row change is applied within
syncInterval, not instantly. - Kubernetes resources only: cloud resources go through a Kubernetes API such as Crossplane, which a LynqForm can template.
- No approval step per change: if every change needs a human sign-off, a Git-based workflow fits better.
- Not a replacement for GitOps: keep cluster-level configuration in Git (Argo CD, Flux); let Lynq manage the per-row layer.
Get started
helm repo add lynq https://k8s-lynq.github.io/lynq
helm install lynq lynq/lynq --namespace lynq-system --create-namespace --set namespace.create=false
cert-manager is required (installation).
- Try it in your browser — a disposable cluster, nothing to install (about 10 minutes).
- Quick Start — the same flow on a local cluster.
- Examples — preview environments, database per tenant, blue-green, custom domains and more.
Documentation
Everything is at lynq.sh: concepts · templates · datasource · API reference · monitoring · troubleshooting · blog
Contributing
Contributions are welcome — bug fixes, features, docs, datasource adapters and use cases.
git clone https://github.com/k8s-lynq/lynq.git && cd lynq
make install # install CRDs into the current cluster
make run # run the controller locally
make test # unit tests
- Development guide · Contributing guidelines · Add a datasource
- Report an issue · Discussions · Roadmap
Project status
Used in production. E2E-tested on Kubernetes v1.32–v1.34. Licensed under the Apache License 2.0. Copyright 2025 Lynq Operator Authors.
Explore related projects
Loading…