Odin on-premises · Kubernetes multi-server

Deployment Guide

Multi-server high availability on Kubernetes (kubeadm)

Document
ODIN-K8S-03
Version
0.9
Classification
Customer-facing
Date
November 2026

0.Status of this document

Design baseline, not yet a released procedureThe kubeadm install path is in implementation. Sections 1 to 4 and 6 to 7 describe the intended procedure and are stable. Section 5 is the target sequence and section 8 states exactly which parts exist today. Do not run this as a live deployment procedure until version 1.0 is issued. For a deployment now, use the k3s guide, ODIN-K3S-03.

The commands below are the installer's own: install.sh, backup.sh and restore.sh in appliance/. The kubeadm path adds one flag, --distro k8s, and changes what the installer does behind it, not the interface you type.

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-K8S-01 readiness sign-off (section 11)
3 · ConfigurationOdin deployment engineer30 minRelease package, configuration and certificate on all servers
4 · ChecksOdin deployment engineer20 minPreflight with 0 FAIL on every server
5 · InstallationOdin deployment engineer60 to 90 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. Installation is longer than the k3s deployment because the control plane is built node by node with kubeadm and the images are imported into containerd on each server.

1.3Entry criteria

Table 3. What must be true before installation starts
DoneCriterionReference
Readiness sign-off completeODIN-K8S-01 section 11
Site information returned, including the cluster address modeODIN-K8S-01 section 10
Pre-installation port test passedODIN-K8S-01 section 4.5
Pod and service CIDRs confirmed not to overlap any customer networkODIN-K8S-01 section 4.2
Cluster address decided and reachableODIN-K8S-01 section 5
Change window approvedODIN-K8S-01 section 8

2.Release package

Table 4. Package contents
FileContent
odin-onprem-<version>-<arch>.tar.zstKubernetes binaries, containerd, the CNI plugins, 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, including the distribution it was built for
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.
The package is built for one distributionThe manifest records the distribution the package was built for. The installer refuses a package whose manifest does not match the requested --distro, so a k3s package cannot be installed on a kubeadm target by accident, or the reverse.
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 Kubernetes 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

  • Hardware and operating system meet ODIN-K8S-01 sections 2 and 3, on every machine.
  • The names, certificate and DNS in ODIN-K8S-01 sections 6 and 7 are ready.
  • Backups have a destination off the machine they protect (ODIN-K8S-01 section 9).
  • 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.
  • 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, with the flags that matter on kubeadm marked.

Table 6. Flags for a standard HA deployment
FlagPurpose
--distro k8sBuild a standard kubeadm cluster instead of the appliance's own k3s. --k8s is a shorthand. Fixed once the install is saved
--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
--haStacked etcd, HA data plane, three or five servers
--vip <ipv4>The cluster address: the kube-vip address, or the load balancer's. Becomes --control-plane-endpoint
--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
What --distro k8s changesThe interface you type is the same. Behind it the installer installs containerd as odin-containerd.service with its own socket and data root, imports the images into it, runs kubeadm init and kubeadm join instead of starting k3s, and applies the add-ons k3s would otherwise provide: a local-path provisioner, a Traefik DaemonSet and kube-router for NetworkPolicy.

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 --distro k8s --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.1What kubeadm adds to the check

Table 8. kubeadm-specific checks
CheckRequirement
cgroup versioncgroup v2 must be active. A server on cgroup v1 is refused, not warned about; the check switches it and one reboot follows
Kernel modules and sysctlsbr_netfilter loaded; bridge-nf-call-iptables, bridge-nf-call-ip6tables and ip_forward set (ODIN-K8S-01 section 3.4)
Disk capacityChecked before kubeadm init, not after, so a short disk does not leave a half-built control plane
containerdodin-containerd.service running and reachable at its own socket
Node addressThe interface and address that will be passed as --node-ip and --apiserver-advertise-address, resolved explicitly on multi-homed servers
DistributionThe package's manifest matches --distro k8s

4.2Common failures and their correction

Table 9. Common preflight failures
FAILCorrection
A required package is missingInstall it from the customer OS repository (ODIN-K8S-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
cgroup v1 activeLet the check switch it, then reboot and run preflight again
Disk fsync above 10 ms on an HA serverMove /var/lib/odin/containerd and /var/lib/etcd 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
An S3 bucket is missing or not writableCreate the bucket; check the key's permissions

5.Installation

5.1The first server

sudo ./install.sh --role server --init --distro k8s --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, installs containerd as odin-containerd.service and imports every image into it.
  3. Generates the secrets. Only the first server ever does; a join never generates them.
  4. Runs kubeadm init with the cluster address as --control-plane-endpoint, the Odin CRI socket, the node IP, the advertise address and the pod and service CIDRs.
  5. Applies kube-vip (unless --external-lb) and waits for the address to answer.
  6. Applies flannel, CoreDNS and kube-proxy, and waits for the node to be Ready.
  7. Writes the cluster's settings and the two join files, and prints the join commands.
  8. Applies helm-controller, Traefik, the local-path provisioner and kube-router, then the CloudNativePG operator, then — once three servers are Ready — the PostgreSQL cluster and pooler, then Odin and its migrate job.
  9. Schedules backups, sets up monitoring if asked for, and prints the URL.
Every join goes through the control-plane endpointkubeadm init and every join use the cluster address, never a node address. A cluster initialised against server 1's own address dies with server 1 and cannot be repaired without rebuilding it.
It waits for three serversWith --ha step 8 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 the control plane was built.

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 Kubernetes 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 --distro k8s --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 10. 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-K8S-01 section 5.3). A join that used a node address instead of the endpoint fails the same way
The address accepts connections but returns nothingThe load balancer pool is empty or all members are down; populate it with the servers
kubeadm init refuses to startcgroup v1 active, swap on, or br_netfilter not loaded; run preflight, reboot if it switched cgroup, and re-run
Pods stuck in ImagePullBackOffImages not imported on that server, or ctr addressed the wrong containerd socket; re-import against the Odin socket
Node NotReady after joinWrong --node-ip on a multi-homed server; correct the kubelet configuration and restart kubelet
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)
odin-ml never becomes Readykube-router dropping kubelet probes; confirm networkPolicy.allowNodeProbes is enabled
The join is refused for a version mismatchThe joining machine has a different bundle or Kubernetes 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 11. 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, including the cluster PKI and the etcd snapshot
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
Single-server lossService continues; the lost server rejoins on return
Status exit codeinstall.sh status exits 0

6.2Functional acceptance

Table 12. 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 13. Hand-over record
ProvidedValue
Odin releasePackage location
Site configuration/etc/odin/install.env
Certificate expiryDate and renewal owner
Cluster health resultOutput of install.sh status
Restore verification resultOutput of the restore drill
Open WARN itemsEach with an owner and a date
Table 14. Sign-off
RoleNameDateSignature
Odin deployment engineer
Customer infrastructure
Customer application owner

7.Operations

7.1Scheduled jobs

Table 15. Scheduled jobs
JobScheduleFunction
odin-backup.timerDaily 00:00, or hourlyDatabase, files and secrets backup
odin-backup-datastore.timerDailyBackup with the cluster datastore: /etc/kubernetes/pki, the kubeconfigs, /var/lib/etcd and an etcd snapshot
etcd snapshotsEvery 6 hours; 28 kept per serverCluster state
The datastore set is what makes a rebuild possiblek3s keeps everything a rebuild needs in one token and one directory. kubeadm does not: a rebuilt cluster needs the CA and service-account keys from /etc/kubernetes/pki or it cannot re-admit existing nodes or decrypt existing service-account tokens. A restore that omits them is not a restore.

7.2Operational commands

Table 16. 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-node <name>Drain and remove a node, on a server other than the one removed
./install.sh upgrade [--ha]Move to a new release: the control plane one node at a time, then a Helm upgrade
./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)
./restore.sh --etcd-snapshot <file> --token-file <file>Restore cluster state on a rebuilt control plane
./restore.sh --extract-secretsFirst step on a replacement machine

7.3Incident runbooks

Table 17. 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)
Site lossRebuild the control plane, then ./restore.sh --etcd-snapshot and --from <set>
Certificate expiry./install.sh --tls-cert … --tls-key …
Disk capacity./install.sh status

7.4Reading the cluster

Use the cluster's own kubeconfig, spelled out, as the installer does: a plain kubectl on the host may be another one reading another config.

kubectl --kubeconfig /etc/kubernetes/admin.conf get nodes,pods -A -o wide
kubectl --kubeconfig /etc/kubernetes/admin.conf get events -A --sort-by=.lastTimestamp

8.Implementation status

This section exists so that nobody mistakes a design baseline for a released procedure. It is removed when version 1.0 is issued.

Table 18. Implementation status
AreaStatusDetail
Chart portabilityDoneStorage class, ingress class, image registry and Pod Security Standards are configurable; renders are byte-identical when the new knobs are unset
--distro flagDonek3s, k8s and existing accepted, validated and persisted; a changed value on a re-run is refused
kubeadm cluster buildPlannedkubeadm init and join, containerd, flannel, kube-vip, Traefik DaemonSet, local-path, helm-controller, kube-router
Image importPlannedPer-server import into the Odin containerd, addressed by the Odin socket
Installer on kubeadmPlannedpreflight, status, upgrade, remove-node, backup.sh and restore.sh adapted to kubeadm paths and commands
Cluster PKI in the datastore setPlanned/etc/kubernetes/pki, the kubeconfigs and /var/lib/etcd added to odin-backup-datastore.timer
Version floor for existingPartialThe chart's API floor is 1.21; the preflight check and the supported-version policy are not yet implemented
End-to-end validationPlannedSingle-node, HA with in-cluster VIP, HA with external load balancer, failover, backup and restore
What can be done todaySite preparation against ODIN-K8S-01 — servers, disks, operating system, network, firewall, load balancer, DNS and certificates — is unaffected by the implementation status and can start now. The deployment itself should use the k3s guide until this document reaches version 1.0.