Skip to content
Open Source

Configuration file

Every setting of /etc/zeatend/config.yaml, for the first server of a cluster and for a node that joins one.

Zeatend reads one YAML file, /etc/zeatend/config.yaml by default; --config names another. Without the file, Zeatend installs K3s with the defaults. An unknown key is an error, so a typo doesn't pass unnoticed.

A file with a top-level join section joins a cluster. Without one, it sets up the first server of a new cluster.

distribution: k3s
disable: [traefik]
host:
tlsSan: [k8s.example.com]
apiServer:
authenticationConfig:
apiVersion: apiserver.config.k8s.io/v1
kind: AuthenticationConfiguration
jwt:
- issuer:
url: https://identity.example.com
audiences: [kubernetes]
claimMappings:
username: {claim: preferred_username, prefix: "zeabur:"}
groups: {claim: groups, prefix: "zeabur:"}
KeyDefaultMeaning
distributionk3sk3s, rke2 or kubesolo.
versionThe release Zeatend pinsA K3s or RKE2 release, such as v1.37.1+k3s1 or v1.37.1+rke2r1. Zeatend checks its downloads only against the release's own checksum list, so the plan marks it unsupported. KubeSolo takes none.
disableNothingPackaged components that K3s or RKE2 doesn't deploy: traefik, metrics-server, and on K3s local-storage, its local-path storage class. KubeSolo packages none of them.
apiServer.authenticationConfigNoneThe API server's authentication configuration, written as Kubernetes describes it.
proxy.httpsNoneAn HTTPS proxy, http://<host>:<port>, for Zeatend's downloads and the node's HTTPS connections. See Install on a server without GitHub.
proxy.noProxyNoneHosts and networks the node reaches directly, in addition to the ones the cluster needs.
registryMirrorsNoneFor each registry, such as docker.io, or "*" for every other one, the mirrors containerd tries in turn before the registry itself.
registryHostsNoneThe caFile, username and passwordFile of a mirror or registry host, by <host> or <host>:<port>.
host.tlsSanNoneMore names and addresses for the API server's certificate, such as a DNS name.
host.nodeNameThe host nameThe node's name in Kubernetes.
host.requireEncryptedDiskfalseStop the install when the cluster's data isn't on an encrypted disk.
storage.longhornfalsePrepare the node for Longhorn; see Longhorn. K3s and RKE2 only.
telemetrytruefalse turns off the experience program.

Without host.nodeName, the node takes the host name in lower case. On K3s and RKE2, a host name made from the server's address, such as ip-10-0-1-5, becomes node- and six hex digits instead. Once installed, a node keeps its name.

KubeSolo always takes the host name, so host.nodeName can only repeat it. To name a KubeSolo node, set the host name before you install.

Zeatend checks only apiVersion and kind, writes the rest to a file unchanged, and gives the file to the API server. Kubernetes checks the other fields when the API server starts. On K3s and RKE2, a configuration without an anonymous section gets anonymous: {enabled: false}, so anonymous requests stay off. A change takes effect on the next apply.

Install with Zeatend in the Zeabur OSS docs writes this section with zeabur-identityctl kube-config, so the API server accepts sign-ins from Zeabur Identity.

The Zeabur catalog installs Longhorn on clusters of more than one node. Longhorn attaches each volume over iSCSI to the node that runs the pod, so every node needs some packages and services before Longhorn starts there. With storage: {longhorn: true}, apply prepares the node:

  • It installs the iSCSI initiator and the NFS client: open-iscsi and nfs-common with apt, or iscsi-initiator-utils and nfs-utils with dnf. On a host with neither apt nor dnf, plan and apply stop and name the packages to install yourself.
  • It loads iscsi_tcp and dm_crypt now and at every boot, through /etc/modules-load.d/zeatend-longhorn.conf.
  • It enables and starts iscsid.
  • When multipathd runs, it writes /etc/multipath/conf.d/zeatend-longhorn.conf, which keeps multipathd off Longhorn's disks, and restarts multipathd when that file changed.

plan lists only what the node lacks, so an apply right after another changes nothing. zeatend doctor reports what a node lacks. zeatend node add turns it on in the configuration of each new node, and tells you to turn it on on the server where you run it. Zeatend doesn't install Longhorn itself. uninstall removes the two files and keeps the packages.

zeatend node add prints this file for you; see Add nodes.

distribution: k3s
join:
server: https://10.0.0.5:6443
role: worker
tokenFile: /etc/zeatend/join-token
KeyMeaning
distributionk3s or rke2, the cluster's distribution.
versionThe cluster's release, when it isn't the one Zeatend pins.
join.serverhttps://<address>:6443 on K3s, https://<address>:9345 on RKE2.
join.roleworker, the default, or on RKE2 server.
join.tokenThe join token. The file must then be mode 0600.
join.tokenFileA file, mode 0600, that holds the join token. Use it instead of join.token.
join.nodeNamesThe names of the cluster's nodes, so this node takes a different name.
disable, apiServerRKE2 servers only. Give every server the same values, because each one deploys the packaged components and runs an API server.
hostAs for the first server. tlsSan applies to servers only.
storagezeatend node add turns on storage.longhorn.
telemetryAs for the first server.
proxy, registryMirrors, registryHostsAs for the first server. zeatend node add doesn't print them; copy them from the first server's file.