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.
Requirements
Section titled “Requirements”| 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.
Beginner path: one command
Section titled “Beginner path: one command”git clone https://github.com/rborso/umkim-thin.gitcd umkim-thinsudo ./install.sh --zone example.com --email you@example.comThe 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.
# 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 --imagesudo ./install.sh --zone example.com --email you@example.com \ --image-tar umkim-thin.tar --image localhost/umkim-thin:noviceInstaller flags
Section titled “Installer flags”| 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:
sudo ./install.sh --zone example.com --email you@example.com --dry-runsudo ./install.sh --doctor # diagnose an existing installsudo ./install.sh --doctor --insecure # self-signed certificate in a labSuccess 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.comThe generated passwords are in /etc/umkim-thin/secrets.yml (mode 0600). If the installer ran without a terminal it does not print them:
sudo sed -n 's/^secret_lldap_admin_password: "\(.*\)"/directory admin: \1/p' \ /etc/umkim-thin/secrets.ymlsudo sed -n 's/^secret_console_localadmin_password: "\(.*\)"/breakglass: \1/p' \ /etc/umkim-thin/secrets.ymlStore them in a password manager. The directory admin is also the Authelia user that reaches the portal and console.
First login
Section titled “First login”- Open
https://auth.<zone>and sign in asadminwith the directory password. Register a TOTP device when prompted. - Open
https://console.<zone>. The portal may ask again, then the console shows its own login. Useadminand the same directory password. - The breakglass account is
localadminwith the second password. It works on the console only — use it when the directory or portal is unavailable. 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.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.
Storage after the install
Section titled “Storage after the install”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-provisionerasnfs-<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.
./install-single.sh # prompts, writes deploy/provision-single.env, runs the preflight, then provisions./install-ha.sh # the same for the three-node pathOr by hand:
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.shThe 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:
- cross-compiles the console binary for Linux/amd64;
- packages the identity, console, WireGuard, and app charts into a local chart mirror;
- ships the playbook, catalog, and mirror to the jumphost;
- runs
ansible-playbook site.yml— host setup, firewall, k3s, Calico, storage, identity, Traefik, console, NetworkPolicies; - builds the console image with
podmanand 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 topology
Section titled “HA topology”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:
PROVISION_ENV=deploy/provision-single.env ./deploy/provision.sh --tags netpolThe 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.
Existing cluster path
Section titled “Existing cluster path”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.
go build ./...
./umkim-thin catalog list./umkim-thin catalog show nextcloud
export UMKIM_THIN_ZONE=example.comexport UMKIM_THIN_KUBECONFIG=$HOME/.kube/configexport UMKIM_THIN_STATE_DIR=$HOME/.umkim-thin./umkim-thin serve --addr :8080Configuration is read from the environment and, when present, from /etc/umkim-thin/config.env. The CLI and the API read the same keys.
Certificates
Section titled “Certificates”| 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:
umkim-thin cert add --name wildcard --cert fullchain.pem --key privkey.pem \ --hosts '*.example.com,example.com'umkim-thin cert default --name wildcardumkim-thin cert listThe 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.
Installation fails early
Section titled “Installation fails early”| 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.