Skip to content

Latest commit

 

History

History
67 lines (53 loc) · 6.35 KB

index.md

File metadata and controls

67 lines (53 loc) · 6.35 KB
title Documentation
order 0
tags
guides
documentation
index
metadata
kind status desc image technologies
personal
active
A self-hosted web UI that installs and looks after Podman Quadlet applications, from a catalog or Git.
Laravel
Inertia.js
Vue
Nuxt UI
Podman Quadlet

Documentation

Pods is a self-hosted web UI for Podman Quadlet: install applications from a catalog or a Git repository, set them up, and look after them on one or more Podman hosts, over SSH. It manages their containers, pods, images, volumes, networks, secrets and journal too. Keep it running on your homelab, stop or remove it on a live server once your applications are set up (they're plain systemd units that don't need it), or run it on your own computer and manage your servers from there.

:::note Upgrades within Pods 1.x keep your data: pods-update migrates the database and keeps your setup, and Pods 1.x stays on version 1 of lpod's JSON contract. An install has one owner. Pods exports volumes but doesn't restore them yet. See Backups to restore an archive on the host. :::

Why Pods

  • Your applications are plain Quadlet files. A .container, .volume or .network file is a systemd unit that Podman ships with. Pods installs them, starts them and shows what they're doing, but it never adds a format of its own on top. Delete Pods and every application keeps running, managed by systemd as before. You can always edit, install or debug them with podman quadlet, systemctl and journalctl.
  • systemd does the work. Starting at boot, restarting on failure, logs, timers, dependencies and podman auto-update all come from systemd and Podman. Pods adds no daemon or agent of its own on the host. lpod is a command-line tool that Pods runs over SSH.
  • Pods doesn't have to keep running. Use it to install and set up your applications, then keep it running, stop it, or remove it (see Keep it running, stop it, or remove it). Your applications' own background work, such as a queue worker, can pause too while nobody visits them, and start again on the next visit (see Pausing background work).
  • One UI for several hosts. Every host is an SSH target, the one Pods runs on too, so Pods can also run on your own computer and manage your servers over SSH (see Run it on your own computer).

See Comparison for how Pods compares with Cockpit, lerd, Laravel Sail, Laravel Cloud and Portainer.

Getting started

  • Screenshots: see what Pods looks like before you install it.
  • Installation: the requirements, and installing Pods on a host with one command.
  • Getting Started: create the owner, install an application from the catalog, and make your own repository installable.
  • Comparison: how Pods compares with Cockpit, lerd, Laravel Sail, Laravel Cloud and Portainer, and one PostgreSQL shared by several applications.

Guides

Guide What it covers
Application Manifest pods.yml: secrets, setup steps, routes, suspend and timers
Proxy Hostnames and certificates for applications, with Caddy
Pausing Background Work Pausing a quiet application's queue worker or Horizon
Backups Volume sizes, exporting volumes and restoring them by hand
Health Checks Checking that Pods itself is up
Development Working on Pods: setup, commands and tests
Architecture How Pods talks to hosts through lpod and SSH
Roadmap What's planned next

How it works

Browser ──HTTP──▶ Pods (Laravel) ──SSH──▶ host ──▶ lpod … --json ──▶ podman, systemctl, journalctl
  • Every host is an SSH target, the local one too. Pods runs in a container and reaches the machine it runs on through host.containers.internal, so local and remote hosts use the same code path.
  • lpod is the host agent. Pods never runs podman or systemctl itself. It only runs lpod … --json and reads the JSON it returns. The CLI and the UI do the same thing, and you can always fall back to lpod in a terminal.
  • The JSON contract is versioned. Every payload carries "contract": 1. Pods refuses a host that speaks a contract it doesn't know. The fixtures in tests/Fixtures/lpod/contract-1/ are the spec lpod implements.
  • Quadlets are the source of truth. An application is a group of Quadlet units (.container, .pod, .kube, .volume, .network) as reported by podman quadlet list. Pods stores no copy of your containers. It only stores the environments (hosts) and its own users.
  • One SSH key per Pods instance. pods:install generates an ed25519 key pair. You add the public key to ~/.ssh/authorized_keys of the user that owns the Quadlets. When you add a host, Pods pins its host key and refuses to connect when it changes.
  • Secrets only travel on stdin. Secret values are piped to lpod and never end up in command arguments, logs or the database.
  • Reads are cached for a few seconds per host (PODS_CACHE_TTL). Actions such as start, stop or prune clear the cache, and the pages poll for the new state. Other open pages of the host reload what changed right away, over Reverb (pods-reverb, on Pods' own address), so pages only poll for changes made outside Pods, such as CPU and memory: every 10 seconds by default (Settings, General, Refresh host pages: off, 3, 5, 10, 15 or 30 seconds, 1, 3 or 5 minutes), and every 5 seconds (or the shorter setting) while a unit starts or stops.

See Architecture for the details.