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.
First server
Section titled “First server”distribution: k3sdisable: [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:"}| Key | Default | Meaning |
|---|---|---|
distribution | k3s | k3s, rke2 or kubesolo. |
version | The release Zeatend pins | A 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. |
disable | Nothing | Packaged 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.authenticationConfig | None | The API server's authentication configuration, written as Kubernetes describes it. |
proxy.https | None | An HTTPS proxy, http://<host>:<port>, for Zeatend's downloads and the node's HTTPS connections. See Install on a server without GitHub. |
proxy.noProxy | None | Hosts and networks the node reaches directly, in addition to the ones the cluster needs. |
registryMirrors | None | For each registry, such as docker.io, or "*" for every other one, the mirrors containerd tries in turn before the registry itself. |
registryHosts | None | The caFile, username and passwordFile of a mirror or registry host, by <host> or <host>:<port>. |
host.tlsSan | None | More names and addresses for the API server's certificate, such as a DNS name. |
host.nodeName | The host name | The node's name in Kubernetes. |
host.requireEncryptedDisk | false | Stop the install when the cluster's data isn't on an encrypted disk. |
storage.longhorn | false | Prepare the node for Longhorn; see Longhorn. K3s and RKE2 only. |
telemetry | true | false turns off the experience program. |
The node name
Section titled “The node name”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.
The authentication configuration
Section titled “The authentication configuration”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.
Longhorn
Section titled “Longhorn”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-iscsiandnfs-commonwith apt, oriscsi-initiator-utilsandnfs-utilswith dnf. On a host with neither apt nor dnf,planandapplystop and name the packages to install yourself. - It loads
iscsi_tcpanddm_cryptnow 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.
A node that joins
Section titled “A node that joins”zeatend node add prints this file for you; see Add nodes.
distribution: k3sjoin: server: https://10.0.0.5:6443 role: worker tokenFile: /etc/zeatend/join-token| Key | Meaning |
|---|---|
distribution | k3s or rke2, the cluster's distribution. |
version | The cluster's release, when it isn't the one Zeatend pins. |
join.server | https://<address>:6443 on K3s, https://<address>:9345 on RKE2. |
join.role | worker, the default, or on RKE2 server. |
join.token | The join token. The file must then be mode 0600. |
join.tokenFile | A file, mode 0600, that holds the join token. Use it instead of join.token. |
join.nodeNames | The names of the cluster's nodes, so this node takes a different name. |
disable, apiServer | RKE2 servers only. Give every server the same values, because each one deploys the packaged components and runs an API server. |
host | As for the first server. tlsSan applies to servers only. |
storage | zeatend node add turns on storage.longhorn. |
telemetry | As for the first server. |
proxy, registryMirrors, registryHosts | As for the first server. zeatend node add doesn't print them; copy them from the first server's file. |