Skip to content

Add a Server ​

Have no server yet? Rent a Linux server with a public IP address from any cloud provider: at least 1 CPU and 2 GB of memory, 2 CPUs and 4 GB recommended. See Requirements.

Or let Zenavo buy and set up a server for you, paid monthly: see Buy a Server.

Open Servers → New Server and fill in:

  • Name: shown when you pick a server for a project, for example Tokyo 4C 8GB.
  • Public IP or hostname and SSH port (usually 22).
  • SSH user: root, or a user with passwordless sudo. Cloud images often disable root login; use ubuntu on Ubuntu images, debian on Debian, ec2-user on Amazon Linux.
  • Authentication: a password, or a private key (upload the key file or paste it). The key must be an unencrypted OpenSSH or PEM private key, not the .pub file. If it has a passphrase, remove it with ssh-keygen -p -f <file>.

Either is used only by the setup job. A successful setup erases it at once; after a failed one it is kept encrypted for a day, so you can retry without entering it again, and then erased. Zenavo keeps no SSH access to a working server: it reaches the server only through the Zenavo agent, which connects out from the server (Firewall & Security).

Finding the key file

Keys usually live in ~/.ssh, which file pickers hide. Press ⌘ ⇧ G in the macOS file picker and type the path, or ⌘ ⇧ . to show hidden folders.

Click Connect and set up. Zenavo:

  1. Connects over SSH and shows the server's host key fingerprint. If you run setup again, Zenavo refuses to connect if the fingerprint has changed.
  2. Checks the operating system, CPU, memory and sudo access.
  3. Measures from the server whether to use the mainland China sources, then installs a pinned version of K3s, then cert-manager with a Let's Encrypt issuer.
  4. Verifies that the node, Traefik, the storage provisioner and metrics are ready.
  5. Installs the Zenavo agent and waits for it to connect to the control plane over HTTPS.
  6. Erases the SSH credentials.

Progress is shown live on the server's Status tab. If setup fails, fix the reason shown and click Retry setup; finished steps are skipped. Within a day of the failure you can reuse the SSH credentials you entered (Use the credentials from the last attempt); after that, enter them again.

Check the host key ​

To make sure you connected to the right machine, compare the fingerprint the console shows with the one on the server:

sh
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub

On most clouds you can also read it from the instance's serial console without SSH.

Servers in mainland China ​

GitHub and Docker Hub are slow or blocked from mainland China, so setup can install from mirrors in China instead.

Setup picks the sources by timing three small requests from the server itself: GitHub, Docker Hub and Rancher's K3s mirror in China. It uses the China sources when the China mirror answers and Docker Hub or GitHub doesn't, or when GitHub is more than four times slower. If the China mirror doesn't answer, setup always uses the global sources. Zenavo doesn't look up the server's location in a GeoIP service. The Status tab log shows which sources were chosen and why. Hong Kong, Macau and Taiwan servers normally reach GitHub directly, so they use the global sources.

With the China sources:

  • K3s comes from Rancher's official China mirror (rancher-mirror.rancher.cn, INSTALL_K3S_MIRROR=cn), as the K3s docs describe for users in China. Zenavo pins the release and checks the installed binary against the checksum K3s publishes on GitHub. If they don't match, it removes the binary and stops.
  • Public images (K3s system images, cert-manager and images from Docker Hub, Quay, GHCR, registry.k8s.io and gcr.io) are pulled from Zenavo's mirror in China through /etc/rancher/k3s/registries.yaml. Each image keeps its full original name under the mirror, for example docker.io/library/nats:2.14 becomes <mirror>/docker.io/library/nats:2.14. If an image isn't mirrored, the server pulls it from its original registry.
  • What the mirror holds: every day Zenavo copies in the K3s system images, cert-manager, and every version listed under Add Service → Databases. Other public images, such as one you deploy from Docker Hub, aren't mirrored, so the server pulls them from their original registry, which can be slow or fail from mainland China. For those, push the image to a registry that works in China and deploy it from there.
  • Images Zenavo builds from your Git repositories are copied to Zenavo's image store in Shanghai before they are deployed, and the server downloads them there, without leaving mainland China. The deployment log shows the copy ("copying the image to mainland China"), which happens once per image. A copy node near mainland China (a relay's machine in Hong Kong) carries the copy when one is set up, otherwise the control plane does; the log names each layer as it arrives.

If /etc/rancher/k3s/registries.yaml already exists and Zenavo didn't write it, setup leaves it alone.