Lolly Beta
Launch App

DeployHosting and installation

Install Lolly Work on Kubernetes

Note: Lolly Work

This guide covers the optional organisation service. Configuration, console and API paths refer to your Lolly Work instance. The packaged console keeps its release-matched copy of this guide.

This page is for a platform team adding Lolly Work to a Kubernetes cluster. You can try it in one command, then install it for production with your own PostgreSQL, identity provider and recoverable asset storage. The chart targets any conformant cluster and is exercised on RKE2 and K3s.

SLES or openSUSE Leap, K3s or RKE2 with Rancher, SUSE BCI images and Application Collection dependencies are supported options. So are an existing cluster, an external database and another qualified container image. No particular cloud API or Application Collection subscription is required.

What you'll do, in four steps:

  1. Evaluate One install from the published chart: an in-memory store, sample people and the demo pack.
  2. Move to production A separate release from fresh, reviewed values. Nothing is copied over.
  3. Install Your PostgreSQL, identity provider, Secrets and a pinned image digest.
  4. Check Pods, the migration Job, health, readiness and real sign-in.

Before you start

Build the image for your own registry or a disconnected mirror

Build the image yourself only when you need to:

docker build -f deploy/compose/Dockerfile -t <registry>/lolly-work-server:1.2.0 .
docker push <registry>/lolly-work-server:1.2.0

The optional render worker needs a second image, built the same way from workers/render/Dockerfile.

Evaluate on a cluster

One install, with no PostgreSQL, no identity provider and no pack to mount. The evaluation values ship inside the chart package, so pull the package first:

helm repo add lolly-work https://github.com/lolly-tools/lolly-work/releases/download/helm-index
helm repo update lolly-work
helm pull lolly-work/lolly-work --version 1.2.0 --untar --untardir lolly-work-chart

# Name the release lolly-work: Helm prefixes every object with it, so the Service
# is then called lolly-work and the checks below work unchanged.
helm install lolly-work lolly-work/lolly-work --version 1.2.0 \
  -f lolly-work-chart/lolly-work/values-eval.yaml \
  --set image.repository=ghcr.io/lolly-tools/lolly-work-server --set image.tag=1.2.0

What you get:

The pod requests 100m of CPU and 192 MiB of memory. Every choice in values-eval.yaml carries a comment saying what it trades.

Check the evaluation from a terminal

values-eval.yaml sets instance.baseUrl to http://localhost:8787, which is what the port-forward gives you, so browser sign-in works too:

kubectl get pods -l app.kubernetes.io/name=lolly-work        # wait for Running
kubectl port-forward svc/lolly-work 8787:80 &                # Service port is 80, container 8787

curl -s http://localhost:8787/healthz
# {"ok":true,"name":"Lolly Work - evaluation","accessMode":"gated"}

C=$(curl -si 'http://localhost:8787/api/auth/dev?email=owner@eval.example' \
      | grep -i '^set-cookie: lw_session' | sed 's/^[Ss]et-[Cc]ookie: //' | cut -d';' -f1)

curl -s -H "Cookie: $C" http://localhost:8787/api/auth/session
# ..."groups":["owner"],"role":"owner"}}

curl -s -H "Cookie: $C" http://localhost:8787/api/v1/policy/tools
# a tools array, including qr-code   (the demo pack rides in the image)

curl -s -o out.svg -w '%{http_code} %{content_type}\n' -H "Cookie: $C" \
  'http://localhost:8787/render/qr-code.svg?url=https://example.com'
# 200 image/svg+xml

Then open http://localhost:8787/admin and sign in as owner@eval.example. The evaluation lists four sample people: owner@eval.example (group owner), admin@eval.example, brand@eval.example and marketer@eval.example. The addresses from the local install do not exist here, and anything outside the list gets 403.

Reach the evaluation over the ingress instead of a port-forward

The evaluation ingress is plain HTTP with an empty host, so curl works against the node or load-balancer address directly. Browser sign-in and links need instance.baseUrl to match:

helm upgrade lolly-work lolly-work/lolly-work --version 1.2.0 \
  -f lolly-work-chart/lolly-work/values-eval.yaml \
  --set image.repository=ghcr.io/lolly-tools/lolly-work-server --set image.tag=1.2.0 \
  --set config.instance.baseUrl=http://<node-or-lb-ip>
Warning: Never point baseUrl at an https address without TLS

The Secure cookie flag comes from that address. A browser silently drops a Secure cookie sent over plain HTTP, so sign-in loops back to the gate for ever while curl still works.

Move from evaluation to production

Warning: The evaluation's data does not move

Adding DATABASE_URL only changes where future writes go. It does not copy the memory store's projects, sessions or other records into PostgreSQL, and there is no automatic memory-to-PostgreSQL migration.

Do not use values-eval.yaml for a real team. Even with a database it keeps passwordless sample people, known evaluation signing secrets and evaluation mode. Prepare a separate production release with fresh, reviewed values, as below. An existing evaluation namespace or release needs a reviewed transition, not a database-only upgrade with the evaluation values reused.

Install for production

Start from the chart defaults and keep your changes in a reviewed environment file; do not edit or merge values-eval.yaml.

A production install: people and agents reach the Lolly Work server through your ingress and TLS. The server runs as one writable replica, takes sign-in from your identity provider and keeps records and jobs in PostgreSQL. An S3-compatible object store, render workers and an admission policy for its pods are optional.A production install: people and agents reach the Lolly Work server through your ingress and TLS. The server runs as one writable replica, takes sign-in from your identity provider and keeps records and jobs in PostgreSQL. An S3-compatible object store, render workers and an admission policy for its pods are optional.Open this in Diagram Builder

1. Write instance.json, following Install Lolly Work, section 2, with:

The pods refuse to start on a gated instance with neither an issuer nor development sign-in.

2. Create the Secret and install the chart:

kubectl create secret generic lolly-work-secrets \
  --from-literal=DATABASE_URL=postgres://... \
  --from-literal=LW_SESSION_SECRET="$(openssl rand -hex 32)" \
  --from-literal=LW_LINK_SECRET="$(openssl rand -hex 32)"

helm install lolly-work lolly-work/lolly-work --version 1.2.0 \
  -f /path/to/reviewed-production-values.yaml \
  --set image.repository=<registry>/lolly-work-server --set image.digest=sha256:<qualified-digest> \
  --set existingSecret=lolly-work-secrets \
  --set migrate.enabled=true \
  --set-file config=instance.json

Migrations run as a pre-install and pre-upgrade Job. The pack and the web app mount as volumes. The chart also ships a ServiceMonitor, a NetworkPolicy, an ingress and an optional Chromium render-worker tier; the values that matter are in how a deployment fits together.

What your reviewed environment file supplies

Supply ingress and TLS, image-pull credentials and the pack and web app delivery for a full workspace, or leave them out for an instance that serves only the console and API. The small SUSE profile sets bounded resource defaults; it is not a complete identity, database or content configuration. Provide credentials through your platform's Secret provisioning, and keep Secret values out of configuration files and release records.

Check the installation

This instance runs your instance.json, so its name, people and sign-in are the ones you wrote:

kubectl get pods -l app.kubernetes.io/name=lolly-work        # wait for Running
kubectl logs job/lolly-work-migrate                          # the schema Job must have succeeded
kubectl port-forward svc/lolly-work 8787:80 &                # Service port is 80, container 8787
curl -s http://localhost:8787/healthz                        # your instance.name, accessMode gated
curl -s http://localhost:8787/readyz                         # actual store/deployment readiness
Why the port-forward reads 8787:80

8787:80 is not a typo. service.port is 80 and targetPort is the container's 8787, and kubectl port-forward reads the remote number as a Service port, so 8787:8787 fails with Service lolly-work does not have a service port 8787.

With development sign-in off there is no /api/auth/dev: sign in through your identity provider at https://<your-host>/admin. The first owner arrives the single sign-on way, from the first-owner table.

Check: Before you accept the instance

Test each of these, then restore an independent backup into a separate target and repeat them:

  • real HTTPS sign-in
  • a viewer or editor invitation
  • an uploaded asset on another device
  • editing and reconnecting
  • delegated agent permissions
  • the exports you turn on

Backup coverage is in keep Lolly Work running.

Later image-only releases use the guarded application update workflow; database migrations, infrastructure and content changes stay separate operations.

Install from the chart repository or Rancher

The commands on this page install from the published chart repository, https://github.com/lolly-tools/lolly-work/releases/download/helm-index. Each chart version is an immutable chart-v* release on GitHub with a Sigstore bundle and a source record. Pick an exact chart version and read what it holds:

helm repo add lolly-work https://github.com/lolly-tools/lolly-work/releases/download/helm-index
helm repo update lolly-work
helm search repo lolly-work/lolly-work --versions
helm show chart lolly-work/lolly-work --version 1.2.0

Check the chart's Sigstore bundle and source record, as official installation routes describes, before you apply the chart. To install from a reviewed source checkout instead, use its deploy/helm directory in place of lolly-work/lolly-work --version 1.2.0 and keep your reviewed values, configuration and Secret references. Mirrors are covered in official installation routes.

In Rancher, add the same address under Apps > Repositories, then choose Lolly Work and the reviewed version. The form collects connection settings; review the full YAML for TLS, PostgreSQL, identity admission, owner mapping and the pack and web app mounts. Adding this repository does not add Lolly to Rancher's built-in catalogue.

Upgrade

When a newer Lolly Work release is published, owners and admins see a notice at the top of the console's Overview and on Settings. It gives the new version and the one you run, a Security badge when the release fixes a vulnerability, a warning when it migrates the database, its highlights, a link to the release notes, and the upgrade steps for how you installed it, ready to copy. An admin can dismiss the notice for that version, and a newer release shows again. Members never see the notice.

To know about releases, the server reads this chart repository's index.yaml once a day, at a random time, and when an admin presses Check now on Settings. It is the same plain request any helm repo update makes. The updates settings turn it off or point it at an internal mirror, and install.route chooses which steps the notice shows: the chart sets helm, Rancher's install form sets rancher, and you set fleet or argocd when Git manages the release.

Note: The notice is information only

The repository index is not signed, so the notice tells you what was published without vouching for the release. The chart is signed: check its Sigstore bundle before you upgrade, as below.

Every upgrade, whichever route you installed with:

  1. Back up Back up PostgreSQL and the asset store, then restore the backup into a separate target. After a release that migrates, going back means restoring that backup.
  2. Check the chart Verify the chart archive with its Sigstore bundle. Optional, and recommended.
  3. Upgrade With Helm, in Rancher or in your Git repository. The migration Job runs before the new pod starts.
  4. Check The migration Job's log and the rollout, then sign-in, a live session and the exports you use.

With Helm

helm repo update lolly-work
helm upgrade lolly-work lolly-work/lolly-work -n <namespace> --version <new> \
  -f /path/to/reviewed-production-values.yaml
kubectl -n <namespace> logs job/lolly-work-migrate          # the migrations it applied
kubectl -n <namespace> rollout status deploy/lolly-work

Give the same reviewed values file, and every --set or --set-file you installed with, such as --set-file config=instance.json; anything you leave out returns to the new chart's default. Prefer -f to --reuse-values: --reuse-values replaces the new chart's defaults with the old chart's, so a setting the new release adds or changes never arrives. If your values pin image.tag or image.digest, set the new release's qualified digest first, or the chart upgrades and the server keeps its old image.

The chart replaces the pod rather than running two side by side, so people in a live session reconnect once. With migrate.enabled: false there is no migration Job.

Check the chart signature

The Sigstore bundle is signed by the publishing workflow, the same identity the Lolly appliance checks before it applies a chart:

v=<new>
curl -fsSLO https://github.com/lolly-tools/lolly-work/releases/download/chart-v$v/lolly-work-$v.tgz
curl -fsSLO https://github.com/lolly-tools/lolly-work/releases/download/chart-v$v/lolly-work-$v.tgz.sigstore.json
cosign verify-blob --bundle lolly-work-$v.tgz.sigstore.json \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity https://github.com/lolly-tools/lolly-work/.github/workflows/publish-helm.yml@refs/heads/main \
  lolly-work-$v.tgz
tar -xOzf lolly-work-$v.tgz lolly-work/Chart.yaml | grep -x "version: $v"

To install exactly the file you checked, use ./lolly-work-$v.tgz in place of lolly-work/lolly-work --version $v.

In Rancher

  1. Add the chart repository once. Under Apps > Repositories, create a repository with https://github.com/lolly-tools/lolly-work/releases/download/helm-index, or your mirror. Skip this when it is already listed.
  2. Upgrade. Open Apps > Installed Apps, choose the Lolly Work app in its namespace, then Upgrade and the new version. Review the YAML before you confirm, including any image pin.
  3. Check. In Rancher's kubectl shell, read the migration Job's log and the rollout, as in the Helm commands above.

With Fleet or Argo CD

Change the chart version in your Git repository and merge it through your usual review; the controller upgrades the release, migration Job first. For Fleet, in the fleet.yaml that deploys Lolly Work:

helm:
  chart: lolly-work
  repo: https://github.com/lolly-tools/lolly-work/releases/download/helm-index
  version: <new>

For Argo CD, in the Application:

spec:
  source:
    repoURL: https://github.com/lolly-tools/lolly-work/releases/download/helm-index
    chart: lolly-work
    targetRevision: <new>

Argo CD runs the chart's migration Job as a PreSync hook. Then check the Job's log and the rollout as above.

Warning: Lolly Work does not upgrade itself

An in-place upgrade from inside the cluster would need the server's own ServiceAccount to change every object the chart owns, its Secrets and Helm's release record included, in each namespace they go to. That is close to cluster-admin, held by the process people reach over the network. The chart grants the server no Kubernetes API rights, so you run the upgrade.

Prepare new SLES or openSUSE Leap hosts

On an existing Rancher-managed K3s or RKE2 cluster, keep your cluster lifecycle and install the chart as above with existing Secrets. For a new host, a readiness check comes first. It only checks the host and never installs a runtime. From a reviewed source checkout on that host, save its result privately:

umask 077
sudo python3 -I deploy/suse/host-readiness.py \
  --profile k3s --expect-host lolly-rehearsal > /private/host-readiness.json

The Ansible adapter and Salt state run the same check through your existing fleet tooling.

After that check:

The platform-team workflow walks through provider and network review, the pinned K3s install, Helm values review and real collaboration and restore acceptance. Its support table separates implemented automation, actual qualification and reference-only steps.

Cloud and on-premises choices

The Lolly Work repository has tested OpenTofu and Terraform foundations for UpCloud and Evroc. On-premises hardware, OVHcloud, Hetzner and other European or global providers can supply the same Kubernetes or VM interfaces. Each still needs its own qualified host image, network, storage, quotas and restore evidence: a shared interface does not mean that provider has been tested.

A few boundaries hold on every target:

Image builds, WebAssembly, admission policy and alerts

Release developers who build images with SUSE BCI and Podman should read the platform-team builds section and the application update guide. Optional WebAssembly policy and worker tracks are in WebAssembly and Kubewarden choices; neither adds a requirement to a private install. A cluster that enforces admission policy with Kubewarden can apply the policy set for Lolly Work's pods, and a cluster with Prometheus can install the suggested alerts and dashboard.