Installation goal#
This walkthrough follows the Ubuntu 26.04 Server installer from the first language screen to the first login prompt. The target is a clean server that can later become a Kubernetes node, so the choices focus on repeatable setup, remote administration, and a storage layout that is easy to inspect.
Treat the operating system installation as the first part of Kubernetes preparation, not as a separate task you will clean up later.
Kubernetes node setup note
Network and package sources#
Kubernetes nodes need predictable network access for package installation, image pulls, control-plane traffic, and SSH administration. The installer detects the active interface and shows the assigned address before package source configuration begins.
Storage layout for Kubernetes#
The installer can use the whole disk automatically, but a Kubernetes host benefits from storage that is easy to reason about. This example uses a custom layout with separate mount points for /boot, /, and /var. Keeping /var visible is useful because container runtime data, logs, and kubelet state commonly live there.
Why Use A Separate /var#
A separate /var partition is useful because Kubernetes writes most of its growing runtime data there. Container images, writable container layers, kubelet state, pod data, and logs can expand quickly after the node joins a cluster.
For a Kubernetes node, /var is the main place where disk usage grows. Keeping it separate makes capacity planning, troubleshooting, and cleanup safer because growth in Kubernetes runtime data is less likely to consume the root filesystem unexpectedly.
Recommended Partition Sizes#
The screenshots in this guide were captured from a small virtual machine, so the partition sizes shown there are intentionally smaller than what you should use for a real Kubernetes node. A practical layout is to keep the boot partitions fixed, give the root filesystem enough room for Ubuntu and admin tools, and allocate the remaining space to /var, where Kubernetes runtime data grows.
/boot/efi only needs space for UEFI boot files, /boot needs room for kernels and initramfs images, and / does not need most of the disk when Kubernetes state, container images, pod data, and logs are kept under /var.
Choose Custom Storage#
Identity, updates, and SSH#
After storage is confirmed, create the initial administrator account and decide how the node will be accessed. For a Kubernetes host, installing OpenSSH during setup is usually the practical choice because most follow-up work happens remotely.
Optional snaps and reboot#
The featured snaps screen is optional. For a clean Kubernetes node, keep the base system minimal and add only the packages required by your cluster bootstrap process. After that, let the installer finish and reboot into the installed system.
First login verification#
After reboot, sign in with the user created during installation. Before installing Kubernetes components, verify that the server boots cleanly and that the disk layout matches the plan.