Files
qinglong/deploy/kubernetes
whyour c5458596c8 feat(cron): expose run receipts and modularize execution
Return committed trigger IDs and add CLI wait and trigger-specific logs while
preserving API, CLI, transaction, deduplication and unknown-result semantics.

Move scheduling, lifecycle, settlement, queries and legacy adapters into
back/cron; remove obsolete internal import paths and circular dependencies.

Apply project formatting across the repository, cover CJS/MJS in formatting
hooks, add prettier:check and require formatting checks in AGENTS.md.

Validation: backend build; 1398 backend/frontend tests passed (17 platform
skips); 327 CLI tests passed (6 platform skips); 670 files pass format checks.
2026-11-22 12:24:29 +08:00
..

Kubernetes deployment

This deploys Qinglong as a single-replica StatefulSet with persistent data at /ql/data.

kubectl apply -k deploy/kubernetes/overlays/local
kubectl -n qinglong rollout status statefulset/qinglong

Open the panel locally:

kubectl -n qinglong port-forward svc/qinglong 5700:5700

Then visit http://127.0.0.1:5700.

Image registry overlays

Use overlays/example as the committed template for registry customization:

whyour/qinglong:debian -> registry.example.com/whyour/qinglong:debian

Create overlays/local/kustomization.yaml for the actual cluster image. The local overlay is ignored by git so private registry names, digests, and credentials-related references stay local.

Storage

The manifest creates a 5 GiB ReadWriteOnce PVC from the cluster's default StorageClass. If your cluster has no default storage class, add storageClassName under:

volumeClaimTemplates:
  - metadata:
      name: data
    spec:
      storageClassName: your-storage-class

Keep replicas: 1. Qinglong stores state in the persistent data directory, including SQLite files, so multiple replicas should not share the same data volume.

Ingress example

If you expose Qinglong through an Ingress path other than /, set QlBaseUrl to the same path with leading and trailing slashes.

env:
  - name: QlBaseUrl
    value: "/qinglong/"

Example Ingress:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: qinglong
  namespace: qinglong
spec:
  rules:
    - host: qinglong.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: qinglong
                port:
                  number: 5700

Maintenance commands

kubectl -n qinglong logs -f statefulset/qinglong
kubectl -n qinglong exec -it statefulset/qinglong -- ql check
kubectl -n qinglong exec -it statefulset/qinglong -- ql update