Odin on-premises · k3s multi-server

Prerequisites and Network Requirements

Multi-server high availability on k3s

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

1.Deployment summary

Odin runs on two to five servers in the customer data centre. Every server runs the Kubernetes control plane and application workloads; in a three-server deployment the service continues with any one server unavailable.

Table 1. Deployment summary
Value
TopologyThree or five identical servers, each running k3s with embedded etcd, the Odin application and the data services. A single-machine deployment is also supported.
Kubernetesk3s v1.35.6+k3s1, delivered inside the Odin release package
Internet accessNone required. The install is offline end to end; inbound and outbound internet access may be denied.
Container registryNone. Every image is delivered in the release package and imported from it.
Shared storageNone required. Data is held on local SSD or NVMe. Customer S3-compatible storage is optional and recommended for files and backups.
User accessHTTPS through the customer load balancer, or directly through the kube-vip address
Fault toleranceOne server. The loss of two of three servers stops the service: the etcd quorum is 2 of 3.
Sizing is provisionalCPU, memory and disk figures in section 2 are provisional minimums from the installer's own checks, not the output of a load test. Treat them as a floor to design against and confirm the tier with Odin engineering.

2.Server resources

2.1Layouts

Table 2. Supported layouts
LayoutServersWorkersSurvivesStatus
Single machine1noneNothing. The machine is a single point of failure; recovery is a restore from backup.Supported
HA, 3 servers30 to NThe loss of 1 server: etcd keeps 2 of 3 members.Supported
HA, 5 servers50 to Netcd keeps 3 of 5 by default. With --tolerate 2, the loss of any 2 at once across etcd, Postgres, Redis and MinIO.Design target

A server runs the Kubernetes control plane and, in k3s, also runs application pods. A worker runs application pods only, so workers add capacity, not resilience: only servers hold etcd. Use an odd number of servers. With two or four, one more server buys no extra failure tolerance and a split leaves neither half a majority; preflight warns about it.

2.2Sizing

Table 3. Sizing guidance
ItemSingle machineHA serverWorker
CPU and RAMProvisional minimum 4 CPUs and 14 GiBTo be decided with Odin engineeringTo be decided
Free diskProvisional minimum 50 GiBTo be decided; images are several GB twice over (tarball and containerd)To be decided
Disk typeSSD or NVMeLocal SSD or NVMe, fsync p99 under 10 ms (required)SSD
Separate data diskRecommendedRecommended (etcd and Postgres)Optional
Count13 or 50 to N

Two rules matter more than the numbers:

  • Size every server as if one of the others were gone (N-1). The overlay pins one API pod per node and each requests 9000Mi, so when a node is lost its pod stays Pending until the node returns and the survivors must carry the load.
  • Disk latency is enforced, not advised. preflight times synchronous writes in k3s's data directory. Over 10 ms is a WARN on a single machine and a FAIL on an HA server, because etcd on a slow disk loses its leader.

2.3Disk layout

Table 4. Disk layout
Mount pointRequirementContents
/Operating system and the Odin release packageOS, logs, installer
/var/lib/rancherDedicated disk or LV on local NVMe or SSD; fsync p99 10 ms or lowerk3s, etcd, container images, database, uploaded files
Backup destinationOff the machine it protects: another disk, an NFS mount, or s3://Scheduled backup sets, plus the daily datastore set with the etcd snapshot

2.4Placement

Table 5. Placement
Requirement
SiteAll servers in one data centre. Odin does not support stretched clusters.
LatencyUnder 5 ms round trip between servers
Fault domainsEach server on a separate hypervisor host or rack where possible
Architecturex86_64 (AMD64); ARM64 builds exist, confirm with Odin engineering

3.Operating system

3.1Supported releases

Table 6. Supported operating systems
Operating systemReleaseSecurity baseline
Ubuntu Server LTS22.04, 24.04AppArmor enabled; ufw enabled with the rules in section 4.3
Red Hat Enterprise Linux, or a compatible distribution8.10, 9.4 or later 9.xSELinux Enforcing; firewalld enabled

All servers run the same operating system and release, installed as a minimal server, with cgroups v2. On RHEL 8 the installer enables cgroup v2 and one reboot follows.

3.2Packages

The release package delivers k3s, every container image and the SELinux policy packages. Docker, Podman, Helm and a container registry are not installed. The following come from the customer OS repository:

Table 7. Packages from the OS repository
PurposeRed Hat Enterprise LinuxUbuntu Server LTS
Base toolstar gzip coreutils openssl curl gawk sed glibc-common util-linux openssh-clients iproutetar gzip coreutils openssl curl gawk sed libc-bin util-linux openssh-client iproute2
Time synchronisationchronychrony
Package extractionzstdzstd
Network verificationnmap-ncatnetcat-openbsd
Disk latency check (optional)fiofio

3.3Host configuration

Table 8. Host configuration
SettingRequirement
SwapDisabled, including in /etc/fstab
cgroupscgroup v2. On RHEL 8 the installer enables it; one reboot follows.
TimeNTP synchronised to the customer time source; skew below 0.5 s between servers; identical time zone
RoutingIPv4 default route present on every server
Host namesUnique per server and resolvable from every server
Host firewallRHEL: firewalld enabled, ports opened by the Odin installer. Ubuntu: ufw enabled, rules in section 4.3 applied by the customer
preflight stops the install on theseA missing package the install needs, an unsynchronised clock with no time service running to fix it, a server below the minimum CPU or memory, a duplicate host name, or an HA server whose disk exceeds 10 ms fsync are all FAILs. A FAIL stops the install; nothing is changed until it is corrected and preflight passes.

4.Network

4.1Ports

Table 9. Ports
PortProtocolBetweenPurposeWhen
6443TCPnodes and servers; admins to the cluster addressKubernetes API, node joins, image sharingalways
2379 to 2380TCPserver to serveretcd client and peerHA
2381TCPnodes to serversetcd metrics, for the monitoring agentHA with monitoring
8472UDPall nodesFlannel VXLAN, the pod networkmulti-server
10250TCPall nodeskubelet and metricsalways; between nodes in multi-server
5001TCPall nodesSpegel image sharingmulti-server
51820, 51821UDPall nodesFlannel WireGuardonly if enabled
80, 443TCPload balancer or users to nodesIngresswith --domain
30080, 30443TCPload balancer to nodesIngress NodePortsif the load balancer targets NodePorts
30801TCPcallers to the machineOdin's API NodePortalways
your S3's portTCPnodes to S3files, backups, etcd snapshotswith customer S3
(ARP)ARPsame layer-2 segmentkube-vip address failoverwith kube-vip

4.2Firewall rules

The rules below are the complete set. Traffic not listed is denied.

Table 10. Firewall rules
#SourceDestinationProtocol and portPurpose
1Customer user networksCluster address or load balancerTCP 443Odin web, API and file access
2Customer user networksLoad balancerTCP 80Redirect to HTTPS
3Load balancer SNAT addressesServers 1..NTCP 443, 6443Pool traffic and health monitors
4Servers 1..NCluster addressTCP 6443Kubernetes API through the cluster address
5Servers 1..NServers 1..NTCP 22, 6443, 2379, 2380, 5001, 10250Installer SSH, Kubernetes API, etcd, image sharing, kubelet
6Servers 1..NServers 1..NUDP 8472Pod network (VXLAN)
7Customer admin jump hostServers 1..NTCP 22Administration and file transfer
8Servers 1..NCustomer DNS serversTCP and UDP 53Name resolution
9Servers 1..NCustomer NTP serversUDP 123Time synchronisation
10Servers 1..NCustomer OS repositoryTCP 443Operating system patching

4.3Restricted ports

Table 11. Restricted ports
PortRestriction
TCP 6443Reachable from the servers and the load balancer only; denied from user networks
TCP 2379, 2380, 5001, 10250; UDP 8472Server VLAN only; never published through the load balancer
TCP 30801Internal service port; never published through the load balancer or the firewall
TCP 22From the customer admin jump host and between the servers only

4.4Pre-installation port test

Before installation, prove the firewall with temporary listeners. On every server, open the ports the cluster needs:

for p in 6443 10250 2379 2380 5001; do nohup nc -lk $p >/dev/null 2>&1 & done

From every server, against the other servers; every line should report PASS:

for n in <SERVER-1-IP> <SERVER-2-IP> <SERVER-3-IP>; do
  for p in 22 6443 10250 2379 2380 5001; do
    timeout 3 bash -c "exec 3<>/dev/tcp/$n/$p" && echo "PASS $n:$p" || echo "FAIL $n:$p"
  done
done

UDP 8472, for every server pair in both directions. On the destination:

nc -u -l 8472

On the source; the destination should print udp-test:

echo udp-test | nc -u -w1 <DESTINATION-IP> 8472

Stop the listeners afterwards:

pkill -f "nc -lk"
What preflight checks itselfOn the machine it runs on, preflight checks that 6443, 10250, 30080, 30443 and 30801 are free (and 80 and 443 with --domain), and on a cluster node the multi-server ports of its role. It does not test reachability between nodes; the joining node checks that the cluster address it was given answers.

5.Cluster address and load balancer

The servers need one address that survives the loss of any single server. There are two supported ways to provide it, and they are mutually exclusive.

Table 12. Cluster address options
OptionHowWhen to use it
kube-vip (default)The installer runs kube-vip and floats a virtual IPv4 address between the servers. ARP moves the address when a server goes down.The server VLAN is one layer-2 segment and can carry the floating address.
--external-lbNothing of kube-vip is applied. The customer load balancer fronts TCP 6443 on every server and its address goes into the servers' certificate names as a VIP would.The network cannot carry a floating address, or the customer already runs a load balancer.

5.1If you provide a load balancer

Table 13. Virtual servers
Virtual serverPoolHealth monitorSettings
App: 443Servers on TCP 443TCP connect; interval 5 s, timeout 16 sL4, round robin, idle timeout 300 s
App: 80NoneNoneHTTP 301 redirect to HTTPS
API: 6443Servers on TCP 6443HTTPS GET /ping, expects pong; interval 5 s, timeout 16 sL4, round robin, idle timeout 3600 s
Table 14. Load balancer requirements
RequirementReason
L4 TCP pass-throughTLS terminates on the Odin servers with the customer certificate; the Kubernetes API uses its own certificates end to end
SNAT enabled (automap)Each server is a pool member and also connects to the API address; without SNAT the return path fails and servers cannot join
Pools populated before installationA virtual address with an empty pool accepts connections and returns no data
No persistenceOdin holds no session state on individual servers
API address is a static IPv4 addressThe address is written into the Kubernetes API certificate at installation
API address on the server networkNot routed to user networks

Pool members show as down until installation completes. That is expected.

6.DNS

With --domain odin.corp.example, Odin uses three host names. Create three records in the customer internal DNS, each resolving to the cluster address or to the load balancer in front of it:

Table 15. DNS records
RecordExamplePurpose
Webodin.corp.exampleOdin web application
APIapi.odin.corp.exampleOdin API
Filesfiles.odin.corp.exampleOdin file storage

--api-domain and --files-domain change the last two. The routes match only their own host name, so Odin does not load over a server's bare IP address. All servers must resolve all three records through the customer DNS servers.

7.TLS certificate

Table 16. Certificate requirements
ItemRequirement
Subject alternative namesThe three DNS records in section 6. A wildcard certificate (*.odin.corp.example plus odin.corp.example) is recommended, because the three names then never need a new certificate.
IssuerCustomer enterprise CA, or a public CA
KeyRSA 2048 bit or larger, unencrypted PEM, file mode 0600
ChainPEM: server certificate, intermediate certificates, root certificate
TrustThe issuing CA trusted by the operating system of every server
RenewalAt least 30 days before expiry
LocationSupplied with --tls-cert and --tls-key; the installer stores them in the cluster's settings Secret
A certificate is required for file accessWith the bundled MinIO, the backend and browsers reach storage at https://files.<domain>. File downloads and the in-app document preview need --domain and a certificate, or the customer's own S3. A domain without a certificate does not open file links either.

8.Access control

Table 17. Access control
ItemRequirement
Odin service accountOne named local account, identical on every server, with passwordless sudo
AuthenticationSSH key only; password authentication disabled for the account
Root loginDirect root SSH login disabled; elevation through sudo
Server-to-server SSHA dedicated key for the service account, accepted only from the server addresses
Administrative entryThrough the customer admin jump host only (rule 7, section 4.2)
File transferSFTP through the jump host to server 1 for the release package and patches
Installation windowTwo to three hours, with customer infrastructure and network contacts available
The join token is a secretThe installer writes a join file for servers and one for workers. The server token in them also decrypts the cluster's stored Secrets. Transfer them over a channel you trust, keep a copy with the backups, and delete the copies on machines that have joined.

9.Backup storage

Backups are configured at installation and run on a schedule. The destination must be off the machine it protects: another disk, an NFS mount, or an s3:// destination. Give each install a destination of its own.

Table 18. Backup destinations
TierLocationCustomer provides
Scheduled backupA directory on another disk or an NFS mount, or an S3-compatible bucketThe destination, writable by the Odin service account
Datastore setThe same destination; a daily backup that also carries the etcd snapshotRoom for it alongside the daily sets
S3 destinationsAn s3:// destination is on the S3 that --s3-endpoint names, the application's own. Without that flag it is on AWS S3, and the installer warns: an air-gapped machine cannot reach AWS, and every scheduled backup would fail. There is no endpoint for backups alone.

If you use your own S3 for files, create the buckets first. The installer never creates a bucket on customer S3. For the application's files that means fourteen buckets; sudo ./install.sh help prints the list:

kb-raw-files user-images saml-metadata
usage-reports project-exports project-imports
templates meetings dalle-generated
sandbox-downloads workflow-temp-files workflow-outputs
custom-python-packages global-notification-media

Where those names are not yours to take, give --s3-bucket-prefix odin- and create every name with the prefix in front. preflight writes and removes a probe object in each bucket and reports a FAIL, which stops the install, for every bucket that is missing or that the keys cannot write to.

10.Site information

Completed by the customer and returned to Odin before installation.

Table 19. Site information
ItemValueFormat
Server 1 host name and IPv4odin-01 / 10.0.0.21
Server 2 host name and IPv4odin-02 / 10.0.0.22
Server 3 host name and IPv4odin-03 / 10.0.0.23
Cluster address (kube-vip or load balancer)IPv4
Web, API and files recordsodin.corp.example
DNS serversIPv4
NTP serversIPv4
Time zoneRegion/City
OS repository URL
Odin service accountodinadmin
Backup destinationdirectory, NFS export, or s3://bucket/prefix
Backup scheduledaily or hourly
SMTP relayHost and port

11.Readiness sign-off

Installation starts only when every line below is signed off.

Table 20. Readiness checklist
DoneItemSectionOwner
Servers at the agreed tier; separate data disks2.2, 2.3Infrastructure
fsync p99 10 ms or lower on HA servers2.2Infrastructure
Separate hosts or racks; latency below 5 ms2.4Infrastructure
Same OS release on all servers; packages installed; swap disabled3.1, 3.2, 3.3Infrastructure
NTP synchronised, skew below 0.5 s; time zone set; host names unique3.3Infrastructure
Firewall rules 1 to 10 in place; port test passed4.2, 4.4Network
Cluster address decided: kube-vip, or load balancer configured5Network
Three DNS records resolving to the cluster address6Network
Certificate covering the three names, issued and trusted7Security
Service account, SSH keys and jump host access in place8Security
Backup destination available and writable9Infrastructure
Site information returned10Project lead
RoleNameDateSignature
Customer infrastructure
Customer network
Customer security
Odin deployment lead