Introducing a new way to review your PRs.

Read the announcement

replicatedhq / kurl

Production-grade, airgapped Kubernetes installer combining upstream k8s with overlays and popular components

View on GitHub

19 documents · Updated Nov 23, 2026

docs / operating-system-support

Operating system support and bundle generation

kURL models supported host operating systems in one OS matrix. That matrix drives test coverage, host capability rules, build targets, and selected Kubernetes package bundles so that an OS change can flow to the artifacts that depend on it. See OS matrix validation for the matrix rules and OS-specific installation bundles for the bundle layouts.

Operating system matrix

Registry role

The OS registry is the shared description of a platform and its installer needs. It connects a testgrid identity and cloud image to installer fields such as distribution, package family, Kubernetes floor, and capability limits. The registry is intended to be edited first; generated files are committed outputs of that source.

References: os-matrix.yaml• L1-11 pkg/…/osmatrix.go• L1-8

OS identities and pools

An OS entry has a registry key and a testgrid ID. The key is the lookup name used by pools, while the ID is the name written to testgrid output. This distinction lets two registry entries share one testgrid identity when they need different images or pinned versions.

Pools are ordered groups of registry keys. Each pool becomes one testgrid OS specification, which lets the repository keep separate views such as latest, full, customer, and removed platform sets.

References: os-matrix.yaml• L24-35 os-matrix.yaml• L250-275 pkg/…/osmatrix.go• L59-104

Capability effects

Capability fields turn platform facts into downstream support behavior. A Kubernetes version floor and Docker support flag can exclude a host from a test specification, while package and AppArmor fields guide the generated host setup and preflight rules.

These rules affect more than test selection. A change to a capability can change the support message or host preparation expected by installation flows, so the generated regions that consume the matrix must stay aligned.

References: os-matrix.yaml• L205-248 pkg/…/osmatrix.go• L82-95 pkg/…/unsupported.go• L9-24

Artifact generation

Generated artifact set

The generator produces two kinds of output. It renders complete files for pool-based testgrid specifications and selected bundle Dockerfiles. It also refreshes marked regions inside hand-maintained files, including shared host setup, preflight data, addon test specifications, containerd setup, and Makefile targets.

The result is a committed set of OS-specific installation and test inputs. The matrix therefore acts as a coordination point between platform support decisions and the files that consume those decisions.

References: pkg/…/generate.go• L10-47 pkg/…/generate.go• L65-127

Bundle selection

Only matrix entries marked for a bundle Dockerfile receive a generated Kubernetes bundle directory. The current generated Ubuntu directories use a dotless version in their path, such as bundles/k8s-ubuntu2604, while the base image keeps the OS version form such as ubuntu:26.04.

The Ubuntu bundle is a package source for a selected Kubernetes version. Its build inputs resolve Kubernetes packages and their dependencies for that Ubuntu release, then expose the files for the installation package build. Other distribution directories use distribution-specific package sources, while Helm and Krew have separate delivery targets rather than one bundle for every matrix entry.

References: os-matrix.yaml• L205-235 pkg/…/dockerfile.go• L9-14 pkg/…/dockerfile.go• L69-82 bundles/…/Dockerfile• L1-18 bundles/…/Dockerfile• L7-26 bundles/…/Dockerfile• L1-24

Generation and drift checks

Generation loads and validates the matrix before it writes any output. The write path updates complete artifacts and marked regions under the selected repository root. The check path renders the same desired content and reports any missing or different committed file.

The normal workflow is:

  1. Edit os-matrix.yaml.
  2. Run make generate-os-matrix.
  3. Review the changed testgrid, bundle, setup, and build artifacts.
  4. Run make verify-generated before integration.

The following diagram shows how one registry change reaches OS-specific Kubernetes installation inputs.

flowchart LR
    M[OS matrix] --> V[Load and validate]
    V --> P[Render pool testgrid specs]
    V --> B[Render selected bundle Dockerfiles]
    V --> S[Refresh marked OS regions]
    P --> C[Committed test coverage]
    B --> K[Kubernetes package build]
    S --> I[Host setup and preflight inputs]
    K --> A[OS-specific installation artifacts]
    I --> A

References: cmd/…/main.go• L1-17 cmd/…/main.go• L80-113 pkg/…/generate.go• L178-267 Makefile• L660-666

Installation artifact flow

Kubernetes package inputs

The bundle directories provide the OS-aware package inputs used to build Kubernetes installation assets. Ubuntu bundles use the apt package family and produce an archive of Kubernetes packages plus dependency information. RHEL and Amazon Linux bundles use their rpm repository flow, so the directory layout reflects the package system of the target distribution.

The Makefile maps each supported Ubuntu bundle to a Kubernetes package build target. The target passes the Kubernetes version into the bundle build and copies the resulting archive into the versioned build output.

References: pkg/…/makefile.go• L5-25 pkg/…/makefile.go• L27-55 bundles/…/Dockerfile• L15-53 bundles/…/Dockerfile• L11-26

Delivery target separation

Kubernetes package bundles are only one delivery path. Helm and Krew have their own bundle definitions because they package different installation tools and plugin assets. The OS matrix governs the host platform and selected Kubernetes bundle generation, while these tool bundles serve shared delivery needs.

References: bundles/…/Dockerfile• L1 bundles/…/Dockerfile• L1-24 pkg/…/generate.go• L20-46

Change checklist

When these files or sections are changed, remember to consider these:

  • When adding or renaming an OS entry, update every pool that should include it and review whether the testgrid ID or registry key is the intended reference.
  • When changing an Ubuntu version or its bundle flag, check the dotless bundle directory and the generated Makefile target together.
  • When changing a Kubernetes floor or Docker capability, inspect the generated unsupported-host regions and the related preflight behavior.
  • When changing package identity fields such as distribution, major version, or package family, review the generated host-package and manifest paths that use those fields.
  • When removing a generated bundle selection, remove obsolete bundle output that generation does not delete automatically.

Important failure modes

TriggerConsequenceGuard
A pool names an unknown registry keyThe matrix cannot load, so generation stops before it writes artifacts.Matrix indexing validates every pool reference.
A registry field contains an unsafe value or an invalid Ubuntu versionGeneration fails instead of producing a bad path, script, YAML value, or bundle base image.Matrix validation checks generated scalar fields and Ubuntu version shape.
Entries declare different Kubernetes floorsThe support exclusion rule could not express one shared floor safely.Matrix validation rejects divergent floors.
The matrix changes without regenerationCommitted test, setup, or bundle files drift from the support definition.make verify-generated renders the expected artifacts and fails on stale files.
A generated region is hand-editedThe next generation replaces the region, or the drift check reports it as stale.Marked regions are refreshed from the matrix and checked against rendered content.

Key files

FileWhy to read it
os-matrix.yamlDefines platform entries, pools, capabilities, and bundle selection in one place.
pkg/…/osmatrix.goExplains the registry model and the validation boundary.
pkg/…/generate.goShows the complete set of rendered files and marked regions.
cmd/…/main.goDefines the generate, check, and snapshot commands used by the repository workflow.
pkg/…/dockerfile.goShows how selected Ubuntu entries become bundle Dockerfiles and directory paths.
pkg/…/makefile.goShows how Ubuntu bundle directories connect to Kubernetes package build targets.
bundles/k8s-ubuntu2604/DockerfileIllustrates the generated Ubuntu package-bundle contract.
bundles/k8s-amazon2023/DockerfileIllustrates the rpm-based package-bundle contract for Amazon Linux.
bundles/krew/DockerfileIllustrates a separate tool-delivery bundle rather than an OS matrix bundle.