Talos is designed to be atomic in deployment and modular in composition.
It is atomic in the sense that the entirety of Talos is distributed as a single, self-contained image, which is versioned, signed, and immutable.
It is modular in the sense that it is composed of many separate components which have clearly defined gRPC interfaces which facilitate internal flexibility and external operational guarantees.
There are a number of components which comprise Talos. All of the main Talos components communicate with each other by gRPC, through a socket on the local machine. This imposes a clear separation of concerns and ensures that changes over time which affect the interoperation of components are a part of the public git record. The benefit is that each component may be iterated and changed as its needs dictate, so long as the external API is controlled. This is a key component in reducing coupling and maintaining modularity.
File system partitions
Talos uses these partitions with the following labels:
- EFI - stores EFI boot data.
- BIOS - used for GRUB’s second stage boot.
- BOOT - used for the boot loader, stores initramfs and kernel data.
- META - stores metadata about the talos node, such as node id’s.
- STATE - stores machine configuration, node identity data for cluster discovery and KubeSpan info
- EPHEMERAL - stores ephemeral state information, mounted at
The File System
One of the more unique design decisions in Talos is the layout of the root file system. There are three “layers” to the Talos root file system. At its’ core the rootfs is a read-only squashfs. The squashfs is then mounted as a loop device into memory. This provides Talos with an immutable base.
The next layer is a set of
tmpfs file systems for runtime specific needs.
Aside from the standard pseudo file systems such as
/tmp, a special
/system is created for internal needs.
One reason for this is that we need special files such as
/etc/resolv.conf to be writable (remember that the rootfs is read-only).
For example, at boot Talos will write
/system/etc/hosts and the bind mount it over
This means that instead of making all of
/etc writable, Talos only makes very specific files writable under
All files under
/system are completely reproducible.
For files and directories that need to persist across boots, Talos creates
overlayfs file systems.
/etc/kubernetes is a good example of this.
Directories like this are
overlayfs backed by an XFS file system mounted at
/var directory is owned by Kubernetes with the exception of the above
overlayfs file systems.
This directory is writable and used by
etcd (in the case of control plane nodes), the kubelet, and the CRI (containerd).