Skip to Content

Infrastructure file

Cluster infrastructure definition.

Schema definition: InfrastructureFile.

Example

A minimal infrastructure.yaml:

infrastructure.yaml
# yaml-language-server: $schema=https://a-line.cloud/schemas/iac/v1.json
version: 1
name: hetzner-fsn1
provider: hetzner
region: fsn1

Fields

labels

Type: map of string, optional.

Cluster-level labels.

load_balancers

Type: list of LoadBalancerSpec, optional.

Load balancer definitions.

name

Type: string, required.

Cluster name (must be unique within tenant).

pools

Type: list of PoolSpec, optional, default [].

Node pool definitions.

provider

Type: string, required.

Cloud provider slug (e.g. "hetzner", "ovh", "libvirt").

region

Type: string, required.

Region slug (e.g. "fsn1", "nbg1").

version

Type: SchemaVersion, required.

The IaC schema version this file is written for.

On this page