IntroducereIntroduction
InstalareInstallation
Ce vă trebuie pe calculatorul de lucru și pe servere, cum obțineți codul și cum verificați că totul este pregătit.
What you need on your workstation and on the servers, how to get the code and how to check everything is ready.
CerințeRequirements
Pe calculatorul de lucruOn your workstation
- Node.js 20 sau mai nou. Keryn nu are dependențe externe: tot codul este în depozit.
- Un client SSH (Secure Shell) și o cheie cu acces
rootla servere.
- Node.js 20 or newer. Keryn has no external dependencies: all code is in the repository.
- An SSH (Secure Shell) client and a key with
rootaccess to the servers.
Pe fiecare serverOn each server
| Verificare | Cerință |
|---|---|
| Sistem de operare | Ubuntu 22.04 / 24.04, Debian 12, Rocky Linux 9, AlmaLinux 9 |
| Memorie | minimum 2 GiB, recomandat 4 GiB |
| Disc liber | minimum 15 GiB |
| Porturi libere | 80, 443, 6443, 10250 |
| Stare | fără Kubernetes instalat anterior |
| Check | Requirement |
|---|---|
| Operating system | Ubuntu 22.04 / 24.04, Debian 12, Rocky Linux 9, AlmaLinux 9 |
| Memory | at least 2 GiB, 4 GiB recommended |
| Free disk | at least 15 GiB |
| Free ports | 80, 443, 6443, 10250 |
| State | no existing Kubernetes installation |
Servere curateClean servers
Keryn refuză o gazdă care rulează deja Kubernetes sau care are porturile ocupate. Nu încearcă să repare o gazdă în stare necunoscută.
Keryn refuses a host that already runs Kubernetes or has its ports taken. It does not try to repair a host in an unknown state.
Acces la codGetting the code
Depozitul este privat în această etapă. Accesul pentru programul pilot se acordă la cerere de către Ma11AI Ltd. După acordarea accesului:
The repository is private at this stage. Pilot access is granted on request by Ma11AI Ltd. Once access is granted:
$ git clone [email protected]:<organizatie>/keryn.git
$ cd keryn
$ node fleet/cli.mjs --helpConvențieConvention
În exemple, keryn înseamnă node fleet/cli.mjs, rulat din clona depozitului.
In examples, keryn means node fleet/cli.mjs, run from the repository clone.
Prima verificareFirst check
- Creați
keryn.yamlcu cel puțin o gazdă (vedeți Gazde și rețea). - Validați fișierul local, fără conexiune la servere.
- Rulați verificarea gazdelor. Prima conectare cere acceptarea explicită a cheii gazdei.
- Create
keryn.yamlwith at least one host (see Hosts and network). - Validate the file locally, with no server connection.
- Run the host preflight. The first connection requires explicit acceptance of the host key.
$ keryn validate
keryn.yaml is valid: project shop, 2 host(s), 1 app(s)
$ keryn preflight --accept-new-host-keyDacă toate gazdele sunt raportate INSTALLABLE, puteți trece la prima aplicație.
If every host is reported INSTALLABLE, continue with your first app.