Odin on-premises · k3s multi-server

Deployment Guide

Multi-server high availability on k3s

Document
ODIN-K3S-03
Version
1.0
Classification
Customer-facing
Date
November 2026

1.Deployment overview

1.1Roles

Table 1. Roles
RoleResponsibility
Odin engineeringRelease package and the Odin installer
Odin deployment engineerConfiguration, checks, installation, acceptance and hand-over
Customer infrastructureServers, disks, operating system, packages, time synchronisation
Customer networkServer VLAN, firewall rules, load balancer, DNS
Customer securityCertificate, service account, jump host access
Customer application ownerFunctional acceptance

1.2Phases

Table 2. Deployment phases
PhaseOwnerDurationExit criterion
1 · ReleaseOdin engineering1 daySigned release package and checksum delivered
2 · PreparationCustomerPer customer planODIN-K3S-01 readiness sign-off (section 11)
3 · ConfigurationOdin deployment engineer30 minToolkit, configuration, certificate and package on all servers
4 · ChecksOdin deployment engineer15 minHost and cluster checks with 0 FAIL
5 · InstallationOdin deployment engineer40 to 60 minCluster health OK: nodes Ready, PostgreSQL 3 of 3
6 · AcceptanceOdin and customer30 minBackup replicated, restore verified, functional tests passed

Each phase closes on its exit criterion before the next begins. Phase 5 allows up to an hour because a first server in HA mode waits for three servers to be Ready.

1.3Entry criteria

Table 3. What must be true before installation starts
DoneCriterionReference
Readiness sign-off completeODIN-K3S-01 section 11
Site information returnedODIN-K3S-01 section 10
Pre-installation port test passedODIN-K3S-01 section 4.4
Cluster address decided and reachableODIN-K3S-01 section 5
Change window approvedODIN-K3S-01 section 8

2.Release package

Table 4. Package contents
FileContent
odin-onprem-<version>-<arch>.tar.zstk3s, every container image, the SELinux policy, the installer, the chart and the offline tooling
…tar.zst.sha256SHA-256 checksum
…tar.zst.sigSignature over the tarball
…MANIFEST.txtWhat the release contains
odin-onprem-cosign.pubThe public key that verifies the signature, published separately from the tarball

Carry the files into the customer's network however its air-gap policy requires, and verify them before extracting:

# 1. Is the download whole?
sha256sum -c odin-onprem-<version>-<arch>.tar.zst.sha256

# 2. Is it Odin's?  (with cosign, needs the network)
cosign verify-blob --key odin-onprem-cosign.pub \
  --signature odin-onprem-<version>-<arch>.tar.zst.sig \
  odin-onprem-<version>-<arch>.tar.zst

# 2, inside the air gap: the same key check with OpenSSL, no network
base64 -d odin-onprem-<version>-<arch>.tar.zst.sig > odin-onprem.sig.der
openssl dgst -sha256 -verify odin-onprem-cosign.pub \
  -signature odin-onprem.sig.der odin-onprem-<version>-<arch>.tar.zst

# 3. Extract, as root
tar --zstd -xf odin-onprem-<version>-<arch>.tar.zst
cd odin-onprem-<version>-<arch>
Table 5. What each check proves
CheckWhat it proves
SHA-256The file arrived intact. Nothing more: the checksum could have travelled with the tarball, so get it by a different route where you can.
SignatureOdin signed it — but only against a copy of odin-onprem-cosign.pub obtained out of band, not from wherever the tarball came from.
Installer's own checkinstall.sh verifies every file in the bundle's SHA256SUMS before it changes the host, and stops if one is missing or altered. It cannot check the signature: it ships inside the tarball.
No --zstd in your tar?RHEL 8 and its rebuilds ship tar 1.30, which has no --zstd. Use zstd -dc odin-onprem-<version>-<arch>.tar.zst | tar -xf - instead.
Signature availabilityThe signing key pair is created once by Odin operations and the public half published alongside the release notes. Until that key is available, tarballs are unsigned and the SHA-256 check is the only one there is; the checksum alone does not prove authorship.
Every machine runs the same releaseIn a cluster, copy and verify the same tarball on every machine. A joining machine aborts before it changes anything when its bundle or k3s version differs from the cluster's. A cluster is moved to a new release with upgrade --ha, never by a plain re-run from another bundle.

3.Configuration

All steps run as root (sudo -i) on server 1, which operates the other servers over SSH.

3.1Before you configure

  1. Hardware and operating system meet ODIN-K3S-01 sections 2 and 3, on every machine.
  2. The names, certificate and DNS in ODIN-K3S-01 sections 6 and 7 are ready.
  3. Backups have a destination off the machine they protect (ODIN-K3S-01 section 9).
  4. If you use your own S3, the buckets exist and the keys can write to them. The installer never creates a bucket on customer S3.
  5. Clocks are synchronised on every machine. etcd and TLS depend on it.

3.2Certificate placement

Place the certificate where the installer can read it. It is stored in the cluster's settings Secret, so it only has to be given to the install, not copied to each node by hand:

install -d -m 0700 /etc/odin/tls
install -m 0644 fullchain.pem /etc/odin/tls/fullchain.pem
install -m 0600 privkey.pem   /etc/odin/tls/privkey.pem

3.3Flags

The installer takes its configuration as flags. install.sh help lists every one with its default; the table below is the set a standard HA deployment uses.

Table 6. Flags for a standard HA deployment
FlagPurpose
--role server|workerWhat this machine is
--initThis server starts the cluster
--join <address>Join an existing cluster at the cluster address
--token-file <path>The join file the first server wrote
--haEmbedded etcd, HA data plane, three or five servers
--vip <ipv4>The cluster address: the kube-vip address, or the load balancer's
--external-lbYou provide the load balancer; kube-vip is not applied
--domain <name>The web host name; also derives the API and files names
--api-domain, --files-domainOverride the derived API and files names
--tls-cert, --tls-keyThe certificate and key covering all three names
--s3-endpoint, --s3-credsThe customer's S3 for files
--s3-bucket-prefixPrefix for the fourteen bucket names where they are not yours to take
--backup-destA directory, an NFS mount, or s3://bucket/prefix
--backup-s3-creds, --backup-s3-regionCredentials and region for an s3:// backup destination
--backup-scheduledaily (default) or hourly
--monitoringInstall the monitoring profile
--tolerate <n>On five servers, 2 raises the data plane to survive two losses
--smtp-credsCredentials file for the outbound mail relay

4.Pre-installation checks

Run preflight on every machine, with the flags you will install with, and fix every FAIL. A FAIL stops the install before anything is changed.

sudo ./install.sh preflight --domain odin.corp.example
Table 7. Reading the checks
ResultAction
PASSNone
WARNRecorded in the hand-over record; decide whether to accept it
FAILCorrect it, then run the check again. Installation cannot proceed.

4.1Common failures and their correction

Table 8. Common preflight failures
FAILCorrection
A required package is missingInstall it from the customer OS repository (ODIN-K3S-01 section 3.2)
CPU, memory or disk below the minimumResize the server to the agreed tier
Clock not synchronised, or skew above 0.5 sAlign the NTP source on all servers
Duplicate host nameAssign a unique host name
An S3 bucket is missing or not writableCreate the bucket; check the key's permissions
Disk fsync above 10 ms on an HA serverMove /var/lib/rancher to local SSD or NVMe
A required port is in useStop the conflicting service, or correct the firewall rules
Host name does not resolveCorrect the record in the customer DNS

5.Installation

5.1The first server

sudo ./install.sh --role server --init --vip 10.0.0.50 --ha \
  --domain odin.corp.example \
  --tls-cert /etc/odin/tls/fullchain.pem --tls-key /etc/odin/tls/privkey.pem \
  --s3-endpoint https://s3.corp.example --s3-creds /root/odin-s3.env \
  --backup-dest s3://odin-backups/site-a --backup-s3-creds /root/backup-s3.env

What the first server does, in order:

  1. Preflight, with the disk rule enforced for an etcd server.
  2. Saves its settings, then starts k3s with embedded etcd and etcd snapshots on.
  3. Generates the secrets. Only the first server ever does; a join never generates them.
  4. Applies kube-vip (unless --external-lb) and waits for the address to answer.
  5. Writes the cluster's settings and the two join files, and prints the join commands.
  6. Applies Traefik, the CloudNativePG operator, then — once three servers are Ready — the PostgreSQL cluster and pooler, then Odin and its migrate job.
  7. Schedules backups, sets up monitoring if asked for, and prints the URL.
It waits for three serversWith --ha step 6 blocks, for up to an hour, until three servers are Ready. It prints the join commands first so you can run them meanwhile. If the wait runs out, a bare sudo ./install.sh on the first server continues it: its role and settings were saved before k3s started.

5.2Joining more servers

Join servers one at a time and wait for each node to show Ready before the next, until you have three (or five). The first server wrote /etc/odin/cluster/join-server.env and join-worker.env. Copy the server one to the joining machine over a channel you trust, and delete it afterwards.

sudo ./install.sh --role server --join 10.0.0.50 --token-file /root/join-server.env

The address is the cluster address. A joining server never generates secrets and never applies the cluster's manifests. Before it changes anything it checks that its bundle is the cluster's release and k3s version and that the API address answers. A server that stopped part-way is continued with a bare sudo ./install.sh.

5.3Workers

Any number, added whenever capacity is needed. A worker receives the agent token, which can only join a worker, in the worker join file.

sudo ./install.sh --role worker --join 10.0.0.50 --token-file /root/join-worker.env

A worker holds no settings, no kubeconfig and no backup timers; status on it reports its service and says to run status on a server.

5.4Your own load balancer

sudo ./install.sh --role server --init --vip 10.0.0.50 --external-lb --ha

Nothing of kube-vip is applied; the load balancer fronts TCP 6443 on every server, and its address goes into the servers' certificate names as a VIP would. With --domain, the load balancer for the application targets 443 or the NodePort 30443 on every node.

5.5Check the result

sudo ./install.sh status

status exits 0 when everything is healthy and 1 when not. On an HA cluster, expect three nodes Ready, three etcd members, a PostgreSQL primary and two standbys with both pooler pods ready, a Redis master and two replicas, no configuration drift between the servers, and a recent off-box backup.

5.6Fault resolution

Table 9. Fault resolution
SymptomCause and correction
Server 2 or 3 does not joinThe cluster address does not answer, or the load balancer's SNAT is off (ODIN-K3S-01 section 5.1)
The address accepts connections but returns nothingThe load balancer pool is empty or all members are down; populate it with the servers
k3s does not start on RHEL 8cgroup v2 is inactive; reboot after preflight, then re-run
Pods fail name resolutionThe customer DNS servers are unreachable; correct the resolver configuration
etcd or certificate validity errorsClock skew between servers; correct NTP
Pods unreachable across serversUDP 8472 blocked (firewall rule 6)
The join is refused for a version mismatchThe joining machine has a different bundle or k3s version than the cluster; use the same release

6.Acceptance

6.1Technical acceptance

sudo ./install.sh status
sudo systemctl start odin-backup.service
sudo ./backup.sh --dest <destination>          # or wait for the timer
Table 10. Technical acceptance
CheckExpected result
Cluster healthOK; every server Ready; PostgreSQL 3 of 3; every workload Ready
First backupA complete backup set on the configured destination
Restore drillA set restored per the agreed plan. restore.sh is destructive and asks first, so the drill runs on a non-production install or in an agreed window.
Load balancerEvery server considered up in both pools
Web record from a user networkhttps://<web record>/ returns HTTP 200
Status exit codeinstall.sh status exits 0

6.2Functional acceptance

Table 11. Functional acceptance
TestExpected result
Open the web recordTrusted certificate; the Odin sign-in page with the customer theme
Sign inHome page loads
Upload a documentUpload completes; the document is processed
Preview and downloadThe document is served from the files record
Query the documentRelevant results are returned

6.3Hand-over

Table 12. Hand-over record
ProvidedValue
Odin release
Package location
Site configuration (/etc/odin/install.env)
Certificate expiry
Cluster health result
Restore verification result
Open WARN items
RoleNameDateSignature
Odin deployment engineer
Customer infrastructure
Customer application owner

7.Operations

7.1Scheduled jobs

Table 13. Scheduled jobs
JobScheduleFunction
odin-backup.timerDaily 00:00, or hourlyDatabase, files and secrets backup
odin-backup-datastore.timerDailyBackup with the k3s datastore and etcd snapshot
k3s etcd snapshotsEvery 6 hours; 28 kept per serverCluster state

7.2Operational commands

Table 14. Operational commands
CommandFunction
./install.sh statusCluster health report; exits 1 when unhealthy
./install.sh scale <name>=<count>Change the number of copies of a workload
./install.sh remove-nodeDrain and remove a node, on a server other than the one removed
./install.sh upgrade [--ha]Move to a new release, rolling on HA
./install.sh --tls-cert … --tls-key …Renew the certificate across the cluster
./install.sh --monitoringEnable the monitoring profile
./install.sh helpEvery flag, its default, and the S3 bucket list
./backup.sh --dest <path>Take a backup now
./restore.sh --from <set>Restore a set into the running install (destructive; asks first)

7.3Incident runbooks

Table 15. Incident runbooks
SituationFirst command
Health check reports a problem./install.sh status
A server is unavailable./install.sh status, then the Kubernetes view
A server is permanently lost./install.sh remove-node, then join a replacement
An upgrade failedRead the helm job's log; the release is left in place for an operator
A backup failed or is missing./backup.sh --dest <path>, then check the destination
Data corruption or deletion./restore.sh --from <set> (destructive; asks first)
Certificate expiry./install.sh --tls-cert … --tls-key …
Disk capacity./install.sh status
Read the cluster with k3s's own kubectlUse k3s's kubectl with the kubeconfig spelled out, as the installer does: a plain kubectl on the host may be another one reading another config.
k3s kubectl --kubeconfig /etc/rancher/k3s/k3s.yaml get nodes,pods -A -o wide
k3s kubectl --kubeconfig /etc/rancher/k3s/k3s.yaml get events -A --sort-by=.lastTimestamp