Skip to content
프로젝트

소개

⚓️ Kubernetes-Native Database-Driven Provisioning Workflow Automation

생산성 및 자동화

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original
Lynq

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.

License Artifact Hub Build Status Go Version

Website · Why Lynq · Quick Start · Try it in your browser

Animation: a table with rows acme, beta (inactive), gamma. Each active row gets its own stack of Kubernetes resources; beta gets none. A new row, delta, gets a new stack. A resource changed by hand turns red and is put back. When gamma is deactivated, its stack is removed. The cluster always matches the table.

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.

Animation: nine LynqNodes on v1. The template changes to v2. Without a limit all nine would update at once. With maxSkew: 3, only three pass through a gate at a time; each leaves when Ready on v2 and the next one enters. A slow node stays not Ready and keeps its slot while the next node waits. All nine end on v2, never more than three updating at once.

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

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.

관련 프로젝트 살펴보기

불러오는 중…