Installation
Install Lynq on a Kubernetes cluster using Helm (recommended), Kustomize, or from source. Covers cert-manager setup, verification, and upgrades.
This guide covers deploying Lynq to a production or staging cluster. To try it on a local kind cluster first, see Quick Start.
Prerequisites
| Component | Minimum version | Notes |
|---|---|---|
| Kubernetes | v1.28+ | v1.31+ for latest test coverage |
| kubectl | Matches cluster | |
| cert-manager | v1.13.0+ | Required. Manages webhook TLS automatically. |
Install cert-manager
cert-manager must be running before Lynq is deployed. It provisions and renews the TLS certificates that Lynq's admission webhooks require.
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.0/cert-manager.yaml
# Wait for all three cert-manager components to be ready
kubectl wait --for=condition=Available --timeout=300s -n cert-manager \
deployment/cert-manager \
deployment/cert-manager-webhook \
deployment/cert-manager-cainjectorIf cert-manager is already installed (v1.13.0+), skip this step.
Install
Helm (Recommended)
helm repo add lynq https://k8s-lynq.github.io/lynq
helm repo update
helm install lynq lynq/lynq \
--namespace lynq-system \
--create-namespace \
--set namespace.create=falsenamespace.create=false stops the chart from rendering its own Namespace on top of the one --create-namespace makes; without it a fresh install fails with namespaces "lynq-system" already exists.
See the Helm Chart README for all values.
Kustomize
kubectl apply -k https://github.com/k8s-lynq/lynq/config/defaultFrom Source
git clone https://github.com/k8s-lynq/lynq.git
cd lynq
make install # install CRDs
make deploy IMG=ghcr.io/k8s-lynq/lynq:latest # deploy operatorVerify
kubectl get deployment -n lynq-system lynq-controller-manager
kubectl get crd | grep operator.lynq.shExpected CRDs:
lynqhubs.operator.lynq.sh
lynqforms.operator.lynq.sh
lynqnodes.operator.lynq.shIf the operator pod is crashing, check webhook TLS first:
kubectl describe pod -n lynq-system -l control-plane=controller-managerConfiguration
Resource Limits
# config/manager/manager.yaml (shipped defaults)
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 10m
memory: 64MiIncrease memory before scaling beyond a few hundred LynqNodes. See Resource Sizing for benchmarks and a CPU/memory model.
Concurrency
args:
- --hub-concurrency=3 # concurrent hub syncs (default: 3)
- --form-concurrency=5 # concurrent form reconciliations (default: 5)
- --node-concurrency=10 # concurrent node reconciliations (default: 10)
- --leader-electMulti-Architecture
Pre-built images support linux/amd64 and linux/arm64. Docker automatically selects the right image for your nodes.
Upgrade
Always upgrade CRDs before upgrading the operator:
# 1. Upgrade CRDs (preserves existing data)
kubectl apply -f config/crd/bases/
# 2. Upgrade operator
helm upgrade lynq lynq/lynq --namespace lynq-system
# or:
kubectl set image -n lynq-system \
deployment/lynq-controller-manager \
manager=ghcr.io/k8s-lynq/lynq:v1.1.23To roll back:
kubectl rollout undo -n lynq-system deployment/lynq-controller-managerUninstall
# Remove operator (keeps CRDs and node data)
helm uninstall lynq --namespace lynq-system
# or: kubectl delete -k config/default
# Remove CRDs — this deletes all LynqHub, LynqForm, and LynqNode resources
make uninstall
# or: kubectl delete crd lynqhubs.operator.lynq.sh lynqforms.operator.lynq.sh lynqnodes.operator.lynq.shCRD deletion is destructive
Deleting the CRDs deletes all custom resources. Back up your LynqHub and LynqForm manifests before running make uninstall.
Troubleshooting Installation
no such file or directory: tls.crt — cert-manager is not ready or not installed:
kubectl get pods -n cert-manager
# If missing: install cert-manager (see Prerequisites above)
kubectl rollout restart -n lynq-system deployment/lynq-controller-managerAlreadyExists on CRDs — normal during upgrades. The apply is idempotent.
ImagePullBackOff — cluster can't reach ghcr.io. Check network policies or configure an image pull secret.
Forbidden: cannot create resource — RBAC not applied:
kubectl apply -f config/rbac/See Also
- Quick Start — try the customer-web example on a local kind cluster
- Configuration — all operator flags and settings
- Security — RBAC, credential management, and audit logging
- Monitoring — Prometheus metrics and alerting
Quick Start
Run Lynq on a local kind cluster with a small MySQL table, then change rows and watch each customer's Deployment and Service appear and go. About 10 minutes; every output on this page is real.
Architecture
Three controllers, three CRDs, one SSA apply engine. Lynq's reconciliation flow, design patterns, and performance model.