Skip to content

Install UMKIM Thin

UMKIM Thin has one supported beginner path: a fresh Rocky Linux 9 or 10 server and install.sh. The Ansible path is the advanced/single-or-HA path for RHEL-family hosts and existing infrastructure. Both deploy the same charts; they differ in how the host is prepared.

Item Value
Host Fresh Rocky Linux 9 or 10, 4 GB RAM, 2 vCPU, 15 GB free on /var, public IPv4
Domain One zone you control, with A records for auth, console, home, and a wildcard
Ports 80/tcp and 443/tcp reachable from the internet; 51820/udp only for WireGuard
Accounts An email address for ACME and the directory admin, and sudo on the host

The installer checks RAM and free space in /var before it changes anything and refuses below those numbers. No Kubernetes, Helm, or Ansible knowledge is required for this path.

Point these at the server’s public IPv4 address (or at your load balancer / VIP):

Type Name Purpose
A auth.<zone> Authelia portal
A console.<zone> Console and API
A home.<zone> Read-only household launcher
A *.<zone> lldap.<zone> and every app hostname

The wildcard is the simple option and covers home too. If your provider does not support one, add a record for lldap, one for home, and one for each app you install. Certificates use the HTTP-01 challenge, so port 80 must reach the host from the internet before ACME can issue.

Terminal window
git clone https://github.com/rborso/umkim-thin.git
cd umkim-thin
sudo ./install.sh --zone example.com --email you@example.com

The installer installs k3s, Traefik, the identity stack (LLDAP + Authelia), the console, and the single-node storage agent, then prints the first login.

The console image is built locally by default. The installer builds it from the checkout with podman (or docker) and imports it into containerd, so no prebuilt internal image is required and a fresh clone works offline. Use --image only when you already have an image reference, and --image-tar to import a saved archive instead.

Terminal window
# already-available image (skips the local build)
sudo ./install.sh --zone example.com --email you@example.com \
--image ghcr.io/rborso/umkim-thin:v0.2.0
# import a saved archive; pass the tag inside it with --image
sudo ./install.sh --zone example.com --email you@example.com \
--image-tar umkim-thin.tar --image localhost/umkim-thin:novice
Flag Effect
--zone <domain> Public zone; required for an install
--email <address> ACME account email, also the directory admin email
--build-image Build the console image from this checkout (the default)
--image <ref> Use an already-available console image
--image-tar <file> Import an image archive into k3s
--acme-staging Use the Let’s Encrypt staging directory (testing only)
--reuse-k3s Use an existing k3s installation
--dry-run Print the plan without changing anything
--render-only Render the charts and exit
--skip-preflight, --skip-dns-check, --skip-port-check Skip individual checks (not recommended)
--quiet, -y/--yes Less output / no prompts
--insecure Accept a self-signed certificate (--doctor only)
--backup [--out <dir>] Write a backup archive
--doctor Diagnose an existing install
--uninstall [--purge-data] Remove the install

Checks before changing anything:

Terminal window
sudo ./install.sh --zone example.com --email you@example.com --dry-run
sudo ./install.sh --doctor # diagnose an existing install
sudo ./install.sh --doctor --insecure # self-signed certificate in a lab

Success looks like:

umkim-thin is installed.
Portal https://auth.example.com
Console https://console.example.com
Home https://home.example.com
Directory https://lldap.example.com

The generated passwords are in /etc/umkim-thin/secrets.yml (mode 0600). If the installer ran without a terminal it does not print them:

Terminal window
sudo sed -n 's/^secret_lldap_admin_password: "\(.*\)"/directory admin: \1/p' \
/etc/umkim-thin/secrets.yml
sudo sed -n 's/^secret_console_localadmin_password: "\(.*\)"/breakglass: \1/p' \
/etc/umkim-thin/secrets.yml

Store them in a password manager. The directory admin is also the Authelia user that reaches the portal and console.

  1. Open https://auth.<zone> and sign in as admin with the directory password. Register a TOTP device when prompted.
  2. Open https://console.<zone>. The portal may ask again, then the console shows its own login. Use admin and the same directory password.
  3. The breakglass account is localadmin with the second password. It works on the console only — use it when the directory or portal is unavailable.
  4. https://lldap.<zone> is the directory UI behind the portal, for a forgotten password or removing a person. LLDAP has no email reset; that is deliberate.
  5. https://home.<zone> is what the household uses. It lists installed apps with availability and links, and never asks for the console login.

Next: invite someone, then install your first app. The walkthrough shows the same flow with screenshots.

The single-node path installs a root systemd unit, umkim-thin-storage, which exposes a fixed disk/RAID/NFS operation set over a host-only Unix socket. The console’s Storage tab drives it:

  • Local host — import a blank disk or an existing directory and export it over NFS as a ReadWriteMany StorageClass. This is how you give the media apps a shared volume on one server, or add a second disk without touching the command line.
  • External NFS — point at an existing NFS server and export; the console probes TCP/2049, verifies the export, and installs nfs-subdir-external-provisioner as nfs-<name>.

The agent is a host service, not a pod: it is the only component that formats disks, and it never runs in the cluster. Everything is plan first — the console renders the plan and only formats when the plan says so and you type FORMAT.

The Ansible single-node path uses umkim-thin-nfs, and HA uses Longhorn (longhorn-rwo for config, longhorn-rwx for shared media). See Operations.

Ansible path (advanced, single node or HA)

Section titled “Ansible path (advanced, single node or HA)”

This path assumes a workstation, a jumphost that can reach the servers, and Ansible on the jumphost.

Terminal window
./install-single.sh # prompts, writes deploy/provision-single.env, runs the preflight, then provisions
./install-ha.sh # the same for the three-node path

Or by hand:

Terminal window
cp deploy/provision-single.env.example deploy/provision-single.env
# or: cp deploy/provision-ha.env.example deploy/provision-ha.env
$EDITOR deploy/provision-single.env
PROVISION_ENV=deploy/provision-single.env ./deploy/provision.sh

The environment file holds the host list, zone, portal/console hostnames, directory DN, ACME address, management CIDR, WireGuard endpoint, storage backend, and console mode. deploy/provision*.env is gitignored; keep it that way.

What the script does:

  1. cross-compiles the console binary for Linux/amd64;
  2. packages the identity, console, WireGuard, and app charts into a local chart mirror;
  3. ships the playbook, catalog, and mirror to the jumphost;
  4. runs ansible-playbook site.yml — host setup, firewall, k3s, Calico, storage, identity, Traefik, console, NetworkPolicies;
  5. builds the console image with podman and imports it into each node’s containerd.

The first run takes 15–40 minutes depending on downloads. It is idempotent: fix the error and re-run the same command.

HA runs the same platform on three servers and adds:

Piece What changes
Control plane embedded etcd, three servers; the first initialises, the rest join
Address a control-plane VIP owned by kube-vip; the API and ingress use it
Storage Longhorn: longhorn-rwo for config, longhorn-rwx for shared media
Console console_mode=cluster, with a PVC for state instead of host paths
Firewall firewalld is off on multi-node; Calico’s routing and NetworkPolicies are the enforcement

Point *.<zone> at the VIP (or a load balancer in front of it). Longhorn needs disk on every node; if a PVC stays Pending, check kubectl -n longhorn-system get nodes.longhorn.io and the volume conditions.

After installing apps, re-apply the NetworkPolicies so the new namespaces get the default-deny policy:

Terminal window
PROVISION_ENV=deploy/provision-single.env ./deploy/provision.sh --tags netpol

The netpol role only sees namespaces that exist when it runs, so this is a normal step after a batch of installs.

To remove an HA install, use ./uninstall-ha.sh --env deploy/provision-ha.env, which runs the teardown on every server with the primary last.

The binary needs helm and kubectl on PATH, a kubeconfig, and a Traefik ingress. The identity chart must already be installed — the provisioned paths do that for you; app installs then add OIDC clients and route policies to it.

Terminal window
go build ./...
./umkim-thin catalog list
./umkim-thin catalog show nextcloud
export UMKIM_THIN_ZONE=example.com
export UMKIM_THIN_KUBECONFIG=$HOME/.kube/config
export UMKIM_THIN_STATE_DIR=$HOME/.umkim-thin
./umkim-thin serve --addr :8080

Configuration is read from the environment and, when present, from /etc/umkim-thin/config.env. The CLI and the API read the same keys.

Mode Result Use for
ACME production trusted certificates per host a real public host
ACME staging real issuance, untrusted roots testing ACME end to end
Manual certificate a TLS Secret you upload, per app a commercial or internal certificate
Default wildcard one certificate in Traefik’s TLS store a lab CA, or many apps on one wildcard

The catalog defaults every route to ACME. A route can be installed with --certificate default or --certificate secret:<name>, and manual certificates are managed from Certificates in the console or with umkim-thin cert:

Terminal window
umkim-thin cert add --name wildcard --cert fullchain.pem --key privkey.pem \
--hosts '*.example.com,example.com'
umkim-thin cert default --name wildcard
umkim-thin cert list

The lab CA is not trusted by a browser automatically — import the CA certificate (/etc/umkim-thin/tls/ca.crt on the primary) or use curl --cacert. A wildcard default certificate makes Traefik skip ACME for matching routers, so leave it off when you want real issuance. Never run production ACME in repeated test loops: the limit is 50 certificates per registered domain per seven days.

Symptom Fix
image ... not found / ErrImagePull the local build did not import: re-run, or pass --image-tar
at least 4 GB of RAM is required resize the VM; the preflight is not advisory
ACME / certificate errors DNS must resolve to the host and port 80 must reach it
unsupported OS use Rocky 9/10; the Ansible path covers other RHEL-family hosts
k3s is already installed use a fresh VM, or --reuse-k3s for an existing install
kernel ... has no xt_mark sudo dnf -y install kernel kernel-modules && sudo reboot
App pods Pending sudo ./install.sh --doctor, then kubectl -n <app> get pods

The full walkthrough — first login, invitations, the first app, WireGuard, backup, upgrade, troubleshooting, and uninstall — starts at docs/quickstart/ in the source repository.