Article · 3 min read · Getting started
kubespin: Machine kinds and tags
kubespin works out what kind of machine each server is, and you can add tags of your own to find servers quickly.
kubespin works out what kind of machine each server is, and you can add tags of your own to find servers quickly.
In kubespin
The kind of machine
kubespin finds the kind itself over SSH: VPS (with its provider where it can tell), Laptop, Desktop, Board (Raspberry Pi, Jetson) or Dedicated server. It also notes whether a desktop is running.
- Cards on Servers, and the header of each server’s page, say what the machine is in one line, for example “VPS · IONOS”, “Laptop · LENOVO ThinkPad T14” or “Raspberry Pi 5 Model B, 8 GB”, with its tags.
- On the server’s page, choose Manage. Under Kind, Find out reads it straight away for a server that hasn’t got a kind yet.
- Change sets the kind yourself. Later checks don’t change your choice.
The kind changes what the optimiser suggests. On a laptop, desktop or board it never suggests stopping firmware updates, USB drive mounting, the mobile-data service or the software updater, and it says why. See kubespin: Small servers.
Tags
- On the server’s page, choose Manage (or a tag in the header). Under Tags, add a tag, such as
production,homeorclient-acme, and choose Add. Tags you already use are suggested as you type. - A tag can have a value:
room=office. The header shows tags with their values. - kubespin adds automatic tags for the kind and how it’s reached:
vps,laptop,raspberry-pi,jetson,tunnel. You can hide one, but not rename it. Show hidden brings hidden ones back. - On Servers, choose tags above the list. Servers that have all the chosen tags show. The choice is kept in the address, so you can bookmark a filtered view.
Command line
kubespin tags # every server and its tags
kubespin tags ionos-mini # one server's tags
kubespin tags ionos-mini add production room=office
kubespin tags ionos-mini rm room
Removing one of kubespin’s own tags hides it. Server names are as kubespin servers lists them (kubespin: The command line and CLI sessions). The server’s Manage panel shows these commands under From your terminal, with its name filled in.
For the kind, call the API with kubespin api:
kubespin api PUT /servers/$SERVER_ID/machine '{"kind": "laptop"}'
API
curl -s -X PUT https://kubespin.io/api/v1/servers/$SERVER_ID/machine \
-H "Authorization: Bearer $KUBESPIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"kind": "laptop"}'
PUT /api/v1/servers/{id}/machinesets the kind:vps,laptop,desktop,boardordedicated.POST /api/v1/servers/{id}/machine/detectreads it again from the server.PUT /api/v1/servers/{id}/tagssets your own tags (mine) and the automatic tags to hide (hidden).GET /api/v1/servers/tagslists the tags you use.
Each returns the server, with its tags and its machine details.
[!permissions] Permissions Area: Servers
Step Needs Default roles See kinds and tags, filter by tag View Admin, Developer, Operator, Viewer Change the kind or the tags Manage Admin API token: Read only to look; Read and change to set the kind or tags.