Fișierul keryn.yamlThe keryn.yaml file
Gazde și rețeaHosts and network
Fiecare gazdă este un server Linux accesibil prin SSH. Una este server de control; celelalte sunt agenți care rulează aplicații.
Each host is a Linux server reachable over SSH. One is the control server; the others are agents that run apps.
Câmpurile unei gazdeHost fields
| Câmp | Implicit | Descriere |
|---|---|---|
address | — | adresa IP sau numele DNS (Domain Name System); obligatoriu |
user | root | utilizatorul SSH |
port | 22 | portul SSH |
role | server | server sau agent |
gpu | false | gazda are plăci NVIDIA; vedeți Procesoare grafice |
labels | {} | etichete Kubernetes adăugate nodului |
| Field | Default | Description |
|---|---|---|
address | — | IP address or DNS (Domain Name System) name; required |
user | root | SSH user |
port | 22 | SSH port |
role | server | server or agent |
gpu | false | the host has NVIDIA cards; see GPU workloads |
labels | {} | Kubernetes labels added to the node |
hosts:
main:
address: 203.0.113.10
role: server
gpu1:
address: 203.0.113.20
role: agent
gpu: true
labels: { zone: fra1 }Chei de gazdăHost keys
Keryn verifică cheia fiecărei gazde. La prima conectare, opțiunea --accept-new-host-key acceptă explicit cheia nouă; ulterior, o cheie schimbată oprește comanda.
Keryn verifies each host’s key. On first connection, --accept-new-host-key explicitly accepts the new key; afterwards, a changed key stops the command.
Rețea privată WireGuardWireGuard private network
Cu network.vpn: true, traficul dintre gazde trece printr-o rețea WireGuard criptată, în intervalul vpn_cidr. Este recomandat oricând gazdele comunică prin internet public.
With network.vpn: true, traffic between hosts goes through an encrypted WireGuard network in the vpn_cidr range. It is recommended whenever hosts communicate over the public internet.
Paravan de protecțieFirewall
La instalare, Keryn configurează paravanul gazdei pentru porturile necesare grupului. Dacă paravanul este inactiv, jurnalul o spune explicit (ufw inactive: no rules needed).
During install, Keryn configures the host firewall for the ports the cluster needs. If the firewall is inactive, the log says so explicitly (ufw inactive: no rules needed).