Install Mesopod¶
Mesopod runs your apps on a machine that you own. Add the machine as a cluster in the console. Then run the install command on it. The install takes approximately 2 minutes.
What you need¶
- A Mac, a Windows 11 PC or a Linux machine. macOS 14 or later, Windows 11 22H2 or later, or Linux with systemd. Your apps run only while the machine is on. Supported machines lists what is tested.
- Outbound HTTPS. The machine must reach
console.mesopod.cloud,bridge.mesopod.cloudandghcr.io. No inbound ports, no port forwarding, no public IP. - Nothing else on a Mac or a Windows PC. The command installs what it
must have: a Docker engine and k3d on a Mac, WSL on a Windows PC. A Mac
that already has Docker Desktop must also have
kubectlon thePATH. A Linux machine must havecurlandsudo, and the command installs k3s.
1. Add the cluster in the console¶
In the console, open Clusters. Click Add cluster. Give the cluster a name. The name is part of every app URL, so select it with care.
The page asks where apps keep their data. The default, ~/Mesopod, is fine.
It also asks for directories that your apps can reach, for example a photo
library. None is fine. You can add some later.
Click Add cluster. The cluster's page opens, and Setup shows the install command for your machine. The command is one-time and expires in 24 hours. Copy the whole command. Do not type it by hand.
2. Run the command on your machine¶
Above the command, select the tab for your machine: macOS, Linux or Windows. Copy the command from the cluster's page. Paste it on the machine.
If a step fails, read the output. If the run did not print
+ token kept at …, paste the same command again. If it did, the claim is
spent. Run the command that the failure message prints, with no claim. See
Run the install again.
Paste the command in a terminal, as your own user, without sudo.
If no Docker engine runs, the script downloads OrbStack, approximately 500 MB. On a standard account, the script asks you to drag OrbStack into Applications. Then the script creates a local cluster and installs Mesopod into it.
If another program holds port 80 or 443, the script asks whether to continue without them. See Mac port 80 or 443 is already in use.
Paste the command in an ordinary PowerShell window, not an administrator window. Windows asks for permission once, and the rest runs in a new window.
On a PC where WSL is not set up yet, the first run turns WSL on and
stops with Restart required. Restart Windows. Then paste the same
command again.
Install Mesopod on Windows (WSL2) lists each change that the command makes to the PC, and how to undo it.
Select the Linux tab above the command in the console. That command
runs the install script with sudo. Paste it in a terminal on the
machine. sudo asks for your password.
If you are root, sudo does nothing extra. If the machine does not have
sudo, remove the word. Run the command as root.
If you paste the macOS command on a Linux machine, the script stops and prints the Linux command. Run that line.
The script installs k3s if it is not there, then installs Mesopod into it.
To install onto a Kubernetes cluster that you already run, see Install onto a cluster that you already run instead.
3. Watch the cluster come online¶
The script ends with:
+ outpost installed and dialling home
> return to the console — the cluster row walks: waiting for your server -> setting up -> ready
On a Windows PC, the install window continues after that line and ends with
+ done. Return to the console to watch the cluster come online.
Go back to the console. The row moves to setting up on its own, while the
platform installs the routing pieces. Then the row shows provisioned. That
usually takes less than 1 minute.
If the row stays at waiting for your server to call home for more than
5 minutes, see
Troubleshooting.
4. Deploy your first app¶
Your cluster is ready. Your first deploy puts an app on it and opens the app at its HTTPS address.
Make your app names resolve at home¶
Each cluster gets 1 wildcard DNS record, *.<cluster-slug>.mesopod.app. It
points at the machine's own IP address, usually a private one, for example
192.168.1.40. Certificates are real and public. Only the address is local.
Many home routers refuse to pass a public name that answers with a private
address. The feature is called DNS rebind protection. The app does not
resolve until you make an exception for mesopod.app. Where to look:
- OpenWrt, with dnsmasq: Network → DHCP and DNS → Rebind protection →
add
mesopod.appto Domain whitelist. - FRITZ!Box: Home Network → Network → Network Settings → DNS Rebind
Protection → add
mesopod.appunder Hostname exceptions. - pfSense / OPNsense: Services → DNS Resolver → Custom options →
private-domain: "mesopod.app", or turn off DNS Rebind Check under System → Advanced → Networking. - Pi-hole, also dnsmasq: add
rebind-domain-ok=/mesopod.app/to a file under/etc/dnsmasq.d/. Then restart the DNS service.
If your router offers no exception, point the affected devices at a resolver without rebind protection. As a temporary measure, add hosts entries instead.
Away from home, see Reach your apps from outside your home.
Run the install again¶
A new run is safe, and it is the normal correction for anything that failed midway. Run the command with no claim. It names the cluster, so that the script knows which cluster to install again:
curl -fsSL https://console.mesopod.cloud/api/v1/install.sh | MESOPOD_CLUSTER=<your-slug> sh
Run this in a PowerShell window:
$env:MESOPOD_CLAIM=''; $env:MESOPOD_CLUSTER='<your-slug>'; irm https://console.mesopod.cloud/api/v1/install.ps1 | iex
curl -fsSL https://console.mesopod.cloud/api/v1/install.sh | sudo MESOPOD_CLUSTER=<your-slug> sh
<your-slug> is the cluster's name in its app addresses, for example
basement-nuc. On Windows, the command first clears MESOPOD_CLAIM. The
window where you ran the first command still holds the spent claim. The
command makes sure that the installer does not pass that claim on.
With no claim, the script finds the named cluster on the machine and reads the outpost token from the cluster itself. It applies the current manifests again, and it registers the current directory list again. That is how a directory that you added in the console reaches the machine.
You rarely must do this. The outpost updates itself. The cluster's page in the console asks for a new run in 2 cases:
- A release that changes the install itself. The page shows
re-run the install to enable: …and names what the new run turns on. - A cluster installed before automatic updates existed. The page shows
re-run the install to update. Run the install once. Updates arrive on their own after that.
The page shows the exact command for your machine.
If the machine runs a different cluster, the script stops before it changes anything, and names both clusters. A command with no cluster name, from an older console, installs the machine's only cluster again. If the machine runs more than 1, the script asks which one. How the install works says how the script finds the cluster and its token.
You must have a new claim only if the script finds no token for the cluster, or if you revoked it. The script then says so. Click Generate new install command on the cluster's page. That retires the old command immediately.
Remove Mesopod¶
Uninstall your apps in the console first. That removes their workloads cleanly and keeps their data. Remove the cluster in the console. Then remove the install from the machine:
Mac. Delete the local cluster. Your data directory, ~/Mesopod, stays:
~/.mesopod/bin/k3d cluster delete mesopod-<your-slug>
If an install of the cluster stopped before it finished, the script kept the cluster's pending token. Delete that file too:
rm -f "$HOME/.mesopod/pending/console.mesopod.cloud/<your-slug>"
If you installed with an earlier version of the install script, also delete the files that it kept:
rm -f "$HOME/.mesopod/outpost-token" "$HOME/.mesopod/cluster-slug" \
"$HOME/.mesopod/install-mode" "$HOME/.mesopod/data-dir" \
"$HOME/.mesopod/volumes-path"
If you installed k3d yourself, use k3d from your PATH instead. Delete
~/.mesopod/bin when you no longer use it. If the install put OrbStack in
Applications, OrbStack stays there like any other app.
Windows. The saved installer undoes everything that it set up: the
startup task, the firewall rule, the mesopod distro and its own state.
Caution: Back up your data before you run -Uninstall. The command
removes the distro and its disk, and the default data directory is inside
that disk.
& "$env:LOCALAPPDATA\Mesopod\install.ps1" -Uninstall
Linux. On a machine where the install put k3s, the k3s uninstall removes
everything, Mesopod included. /etc/mesopod holds files only from an install
that stopped before it finished, or from an earlier version of the install
script. Your data directory stays:
sudo /usr/local/bin/k3s-uninstall.sh
sudo rm -rf /etc/mesopod
If k3s was on the machine before Mesopod, do not run it. That would delete your whole cluster. Remove Mesopod alone, as Remove Mesopod from a cluster that you already run describes.
A cluster that you already run. See the same page.
Next¶
- Your first deploy: put an app on the cluster.
- Troubleshooting: when a step above does not end the way this page says.
- Snapshots: back your data up before you depend on it.
- How the install works: what the script does, in order, and what it keeps on the machine.