Production Deployment#
A production host runs meshnode (from fleetmesh-node on PyPI or docker.io/fleetmesh/meshnode) alongside meshctl on your operator workstation (see Install for Python, Rust, and container prerequisites). Hosts that bridge to a dedicated strfry relay also install fleetmesh-strfry.
Option A: Systemd with a Dedicated Virtual Environment#
Install the pinned release into a dedicated virtual environment owned by a non-privileged system user (for example meshnode):
sudo useradd --system --home-dir /var/lib/fleetmesh --shell /usr/sbin/nologin meshnode
sudo mkdir -p /opt/fleetmesh /var/lib/fleetmesh
sudo chown meshnode:meshnode /var/lib/fleetmesh
python3 -m venv /opt/fleetmesh/.venv
/opt/fleetmesh/.venv/bin/pip install --pre fleetmesh-node
Initialize the node directory once as the meshnode user (see Networking, TLS & Relays), then verify the directory before starting the service:
sudo -u meshnode /opt/fleetmesh/.venv/bin/meshnode check /var/lib/fleetmesh
meshnode check exits 0 when the directory is ready to run and 1 if keys, configuration, or state are missing or invalid.
Example systemd unit (/etc/systemd/system/meshnode.service):
[Unit]
Description=FleetMesh Node Daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=meshnode
Group=meshnode
WorkingDirectory=/var/lib/fleetmesh
ExecStartPre=/opt/fleetmesh/.venv/bin/meshnode check /var/lib/fleetmesh
ExecStart=/opt/fleetmesh/.venv/bin/meshnode run /var/lib/fleetmesh
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ReadWritePaths=/var/lib/fleetmesh
[Install]
WantedBy=multi-user.target
meshnode run ticks continuously until SIGTERM, shutting down cleanly on systemctl stop or systemctl restart.
Option B: Containers & Kubernetes#
Official multi-arch container images (linux/amd64, linux/arm64) are published to Docker Hub under docker.io/fleetmesh/meshnode:0.5.0a1 (and :0.5.0a1-postgres for PostgreSQL). Use the dedicated runtime guides for deployment and continue through this Operator Guide for Day-2 operations:
Podman Quick Start: rootless local runs, systemd-managed rootless and rootful Quadlets (
meshnode@.container), SELinux labels, and bridge-mode proxy CIDRs.Kubernetes Quick Start:
RecreateDeploymentwithReadWriteOncePVC, idempotentinitContainer, CLI probes, Gateway API / Ingress TLS, andNetworkPolicy.
For a quick one-off container on a Linux host with host networking:
podman run -d --name meshnode \
--restart=always \
--network=host \
--user "$(id -u meshnode):$(id -g meshnode)" \
-v /var/lib/fleetmesh:/var/lib/fleetmesh:Z \
docker.io/fleetmesh/meshnode:0.5.0a1 \
run /var/lib/fleetmesh