Skip to content

docs(install): rewrite the Kubernetes page around Leantime's own Helm chart - #112

Merged
marcelfolaron merged 3 commits into
masterfrom
docs/kubernetes
Nov 23, 2026
Merged

marcelfolaron merged 3 commits into
masterfrom
docs/kubernetes

Conversation

@gloriafolaron

Copy link
Copy Markdown
Contributor

Rewrites installation/kubernetes.md. It now uses the Helm chart in Leantime's own repository (helm/) instead of the third-party gissilabs chart, which was last updated in February 2025 for Leantime 3.3.3. Tested with Leantime 3.15.3 on a local kind cluster.

What the page covers

  • Before you start: a cluster with a default storage class, Helm 3+, kubectl and git.
  • Install:
    • clone the release tag;
    • helm repo add bitnami (the chart README leaves this out, and helm dependency build fails without it);
    • a values.yaml that replaces all three changeme passwords and pins image.tag;
    • helm install, then the installer.
  • Try it before a domain is set up: a tip with kubectl port-forward and leanSessionSecure: "false". Without that setting you can't sign in over plain http.
  • Your own domain: an ingress example with TLS, plus app.url. In-cluster ingress controllers are usually trusted, so trustedProxies is rarely needed.
  • Settings the chart passes: a table of the value groups. Anything else (OIDC, Redis, sign-in limits) can't be set through the chart in 3.15.
  • What the chart can't do yet:
    • more than one pod;
    • keeping plugins;
    • an external database;
    • two LDAP values that have no effect.
  • Update with helm upgrade and a new image.tag, then Update Now!
  • Back up: mysqldump from the MariaDB pod and kubectl cp for both file folders. A warning that helm uninstall deletes the file volumes.
  • Troubleshooting: the Bitnami repo error, a sign-in page that just reloads, and a pod stuck at 0/1.

Tested on kind (cluster removed afterwards)

  • Install:
    • helm dependency build fails with "no repository definition" until the Bitnami repo is added;
    • after that, both pods reach 1/1, and the installer and welcome steps complete.
  • Restarting the Leantime pod:
    • a file in userfiles survives;
    • a file in app/Plugins is gone (no volume);
    • everyone is signed out (sessions live in the pod);
    • the account and data are still there.
  • Scheduler: the pod runs schedule:work, and LEAN_SESSION_EXPIRATION comes through as 480.
  • Backup:
    • kubectl exec leantime-mariadb-0 -- sh -c 'mysqldump -u root -p"$MARIADB_ROOT_PASSWORD" --single-transaction leantime' dumps all 38 tables;
    • kubectl cp copies userfiles.
  • helm uninstall: both Leantime file volumes are deleted; only data-leantime-mariadb-0 stays.
  • From the chart source:
    • LEAN_DB_HOST is always <release>-mariadb;
    • LEAN_LDAP_BASE_DN and LEAN_LDAP_USER_DOMAIN are not settings Leantime reads (it reads LEAN_LDAP_LDAP_DOMAIN);
    • the volumes are ReadWriteOnce.

Other pages

  • installation-types.md and _sidebar.md: "Kubernetes (Helm)" under Docker.
  • docker-troubleshooting.md: the Kubernetes section points to the rewritten page instead of "the community Helm chart".

The Starlight branch (#63) gets new metadata for the page (98b5476). Its menu entry already exists.

Checks

On the #63 build:

🤖 Generated with Claude Code

https://claude.ai/code/session_01FGYRyhyPHQyrtvsu5aawzi

… chart, tested on 3.15.3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FGYRyhyPHQyrtvsu5aawzi

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The Kubernetes guide needs fixes for unquoted LDAP mapping values that Kubernetes rejects and a rolling-update strategy that can stall upgrades with ReadWriteOnce volumes.

2 open issues
What changed in this PR

Replaces the third-party Kubernetes instructions with a guide to installing and operating Leantime using its own Helm chart.

Changes:

  • Documents installation, domain and TLS setup, supported settings, and chart limitations.
  • Adds upgrade, backup, and troubleshooting guidance.
  • Makes the Kubernetes guide easier to find through navigation and related documentation.
File Description
installation/​kubernetes.md Rewrites the guide around Leantime’s own Helm chart.
installation/​installation-types.md Adds Kubernetes under Docker installation options.
installation/​docker-troubleshooting.md Updates the link description to reference Leantime’s chart.
_sidebar.md Adds a Kubernetes (Helm) navigation entry.

Review effort: Balanced

Comment thread installation/kubernetes.md Resolved
Comment thread installation/kubernetes.md Resolved
…eOnce volumes), and the LDAP | quote fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FGYRyhyPHQyrtvsu5aawzi

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The documentation still gives an incorrect service-naming rule that can break port-forwarding and omits the LDAP default-role quoting workaround needed to prevent installation failures.

No open issues 🎉

2 previously missed issues

In code that hasn't changed since last review

Low severity Port-forwarding instructions assume an incorrect service name

installation/​kubernetes.md:62

The v3.15.3 chart's helm/templates/_helpers.tpl uses the release name unchanged whenever it already contains leantime. For example, a release named myleantime creates svc/myleantime, not svc/myleantime-leantime, so following this naming rule makes port-forwarding fail with NotFound. Document both cases or tell readers to discover the service with kubectl get svc.

Low severity LDAP defaultRoleKey renders as a number, which Kubernetes rejects

installation/​kubernetes.md:115

The v3.15.3 Deployment also renders app.ldap.defaultRoleKey without quoting. With LDAP enabled, setting it to 20 produces numeric value: 20, which Kubernetes rejects because environment values must be strings—even if "20" was quoted in values.yaml. Extend the workaround to quote that expression too; otherwise configuring a numeric default role still prevents installation after the documented fixes.

2 resolved since last review

Review effort: Balanced

3.16.0 is the latest release, and helm/ is unchanged between v3.15.3 and
v3.16.0, so the steps tested on 3.15.3 still hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@marcelfolaron

Copy link
Copy Markdown
Contributor

Pushed a commit: the example uses v3.16.0 / image 3.16.0. helm/ is unchanged between v3.15.3 and v3.16.0, so the steps tested on 3.15.3 still hold; the page says so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants