Talos Linux
Talos is an immutable, minimal Linux distribution designed specifically for running Kubernetes. It removes traditional OS components (SSH, package managers, shell access) in favor of a secure, API-driven approach.
Architecture
flowchart TD
topfconfig(topf.yaml) --> topf(TOPF)
patches(Layered Talos patches) --> topf
secrets(1Password secrets provider) --> topf
topf --> nodes
nodes(Bare metal nodes)
Configuration Files
Main Configuration
talos/topf.yaml defines:
- Cluster name and endpoint
- Kubernetes and Talos versions
- Image Factory schematic and Secure Boot settings
- Node names, IPs, and roles
clusterName: phoebe
clusterEndpoint: https://10.80.0.8:6443
kubernetesVersion: "1.37.0"
talosVersion: "1.14.0"
schematicId: "@schematic.yaml"
secureboot: true
nodes:
- host: phoebe-k-ctrl-01
ip: 10.70.0.186
role: control-planeSecrets
talos/secrets.yaml.optpl is the 1Password template for the existing Talos secrets bundle. talos/secrets-provider injects it on demand for TOPF, so plaintext credentials and private keys are never written to the repository. The bundle contains:
- Cluster ID and secret
- Bootstrap token
- TLS certificates for etcd, Kubernetes, and Talos
Schematic
talos/schematic.yaml - Defines the custom Talos image build:
customization:
extraKernelArgs:
- amd_iommu=on # PCI passthrough
- iommu=pt
systemExtensions:
officialExtensions:
- siderolabs/amdgpu
- siderolabs/amd-ucode
- siderolabs/nfsraheadThis schematic is submitted to Talos Factory to build a custom installer image.
Patches
TOPF layers patches in this order:
talos/all/for every nodetalos/control-plane/for control-plane nodestalos/worker/for workers, when presenttalos/node/<host>/for one node
Patches use the Talos 1.14 multi-document API. Most settings are standalone documents such as KubeletConfig, ResolverConfig, VLANConfig, and UnattendedInstallConfig. Only fields still owned by the legacy document, such as machine certificate SANs, machine features, and etcd settings, remain under machine: or cluster:.
Example from talos/all/07-kubelet.yaml:
apiVersion: v1alpha1
kind: KubeletConfig
defaultRuntimeSeccompProfileEnabled: true
config:
featureGates:
ResourceHealthStatus: trueJust Commands
The talos/mod.just file provides management commands:
Render Configuration
just talos renderRenders node-specific configuration into the ignored talos/output/ directory without applying anything.
Apply Configuration
just talos apply --dry-run
just talos apply
just talos apply-node <host> [args]Always review the dry-run before applying an existing cluster.
Get Kubeconfig
just talos kubeconfig
just talos talosconfigGenerates client configuration from the existing secrets bundle.
Upgrade Talos
just talos upgrade <host> --dry-run
just talos upgrade <host> [args]TOPF upgrades the selected node to the Talos version and schematic declared in topf.yaml.
Upgrade Kubernetes
just talos upgrade-k8s <node> [args]Upgrades a node to a new Kubernetes version.
Upgrade Process
Talos Upgrades
- Update
talosVersionintalos/topf.yamland keep themise.tomlTalos client pins aligned. - Check and run the node upgrade. When moving from Talos 1.13 to 1.14, do this before applying the new multi-document configuration; Talos 1.14 can continue running the existing legacy configuration during the reboot.
just talos upgrade phoebe-k-ctrl-01 --dry-run
just talos upgrade phoebe-k-ctrl-01- Wait for the node to reboot and rejoin.
- Review and apply the Talos 1.14 configuration:
just talos apply --dry-run
just talos apply- Repeat the node upgrade for remaining nodes, when present.
Kubernetes Upgrades
- Update
kubernetesVersionintalos/topf.yamlandKUBE_VERSIONinmise.toml. - Run a Kubernetes upgrade against a control-plane node:
just talos upgrade-k8s 10.70.0.186 --dry-run
just talos upgrade-k8s 10.70.0.186- The control-plane upgrade updates kubelet across the cluster.
Bootstrapping
Initial cluster bootstrap is handled by bootstrap/mod.just:
- Apply Talos config and bootstrap Kubernetes with TOPF
- Wait for nodes to be ready
- Create namespaces from directory structure
- Apply CRDs via Helmfile
- Install core apps (Cilium, CoreDNS, Flux)
- Fetch kubeconfig for cluster access
just bootstrapCustom Extensions
The schematic includes official Siderolabs extensions:
siderolabs/amdgpu- AMD GPU driver supportsiderolabs/amd-ucode- AMD microcode updatessiderolabs/nfsrahead- NFS read-ahead optimization
Extensions are built into the installer image via Talos Factory.
Security Considerations
Talos provides:
- Immutable root filesystem - No runtime modifications
- No SSH access - All management via API
- Secure boot support - Verified boot chain
- Minimal attack surface - No shell, package manager, or unnecessary services
The schematic does disable some security features for performance:
⚠️ Warning: These are homelab-specific tradeoffs and should not be used in production environments. Disabling CPU vulnerability mitigations and security modules significantly increases the attack surface.
extraKernelArgs:
- mitigations=off # CPU vulnerability mitigations disabled
- security=none # LSM disabledTroubleshooting
Access Node Console
Use the Talos API:
talosctl dmesg -n <node-ip>
talosctl logs -n <node-ip> kubeletCheck Cluster Health
talosctl health -n <node-ip>
talosctl etcd members -n <control-plane-ip>View Configuration
talosctl get machineconfig -n <node-ip> -o yamlReset a Node
⚠️ Destructive operation:
talosctl reset -n <node-ip> --graceful