Article · 2 min read · Getting started

kubespin: Add a server over SSH

Use this for a server with a public address that you already reach over SSH, including Plesk servers.

Use this for a server with a public address that you already reach over SSH, including Plesk servers.

Before you start

  • A Linux server with SSH open to kubespin.
  • A user that can use sudo. Connecting as root is not recommended: kubespin makes its own kubespin user during onboarding.
  • An SSH key (PEM) or the user’s password.

Steps

  1. Go to Servers and choose Add Server.

  2. Choose Over SSH.

  3. Fill in Server name, IP address / hostname, SSH port and SSH user. The name can’t differ from another of your servers’ only by capital letters or spaces, since the kubespin command would call both the same (kubespin: The command line and CLI sessions).

  4. Under Authentication, choose SSH Key (PEM) and paste the key, or Password.

  5. Choose the Runtime:

    If Docker is already on the server, it’s left as it is.

  6. Check the Review step and choose Launch Onboarding.

What onboarding does

The server’s page shows each step with its log:

  1. SSH connection, pinning the server’s host key.
  2. Security hardening (optional).
  3. Detect OS.
  4. Install runtime, from kubespin’s own cache, checked by SHA-256. See kubespin: The local package cache.
  5. Test container access.
  6. Verify connectivity: waits for the agent’s first report.
  7. Finalise.

On a Plesk server, Plesk’s firewall, swap and Docker settings are left alone. A Plesk server keeps root for kubespin’s own work, and the onboarding log says so; once it moves to short-lived certificates, the shell opens a login of your own instead (kubespin: Shells on servers and in containers).

Afterwards, the server’s Overview shows the server itself: a usage line linking to Monitoring, Needs you (only what needs action, each with its button), Runs here (its apps, their address and state, where they’re built and their last backup), cards for its engine, updates, how it’s reached and how it’s protected, then the agent. Its tags, kind, sign-in, name, power and settings are in the Manage panel.