Go to file
Nianyu Shen 701adfd4a4
PE-6055 fix: use string slice instead of string for k3s args (#106)
* fix: use string slice instead of string for k3s args

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* fix: test

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

---------

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2025-01-30 19:54:25 -08:00
.github/workflows fix: add log rotation and version in logging (#100) 2025-01-27 21:43:30 -08:00
api PE-6055 fix: use string slice instead of string for k3s args (#106) 2025-01-30 19:54:25 -08:00
pkg PE-6055 fix: use string slice instead of string for k3s args (#106) 2025-01-30 19:54:25 -08:00
scripts chmod +x scripts (#96) 2024-10-01 23:10:41 -07:00
.gitignore added omitempty tag to cluster init for worker nodes 2024-06-28 17:25:44 +05:30
.pre-commit-config.yaml PE-5119 Support cluster root path (#86) 2024-09-23 13:46:31 -07:00
Earthfile PE-6055 fix: use string slice instead of string for k3s args (#106) 2025-01-30 19:54:25 -08:00
go.mod fix: add log rotation and version in logging (#100) 2025-01-27 21:43:30 -08:00
go.sum fix: add log rotation and version in logging (#100) 2025-01-27 21:43:30 -08:00
LICENSE chore: add apache 2.0 license 2024-01-25 12:45:43 -07:00
main.go fix: add log rotation and version in logging (#100) 2025-01-27 21:43:30 -08:00
README.md update to new name 2023-01-19 12:04:35 +01:00
renovate.json Add renovate.json (#18) 2024-09-15 23:19:59 -07:00

Kairos K3S Cluster Plugin


This provider will configure a k3s installation based on the cluster section of cloud init.

Configuration

cluster_token: a token all members of the cluster must have to join the cluster.

control_plane_host: the host of the cluster control plane. This is used to join nodes to a cluster. If this is a single node cluster this is not required.

role: defines what operations is this device responsible for. The roles are described in detail below.

  • init This role denotes a device that should initialize the etcd cluster and operate as a k3s server. There should only be one device with this role per cluster.
  • controlplane: runs the k3s server.
  • worker: runs the k3s agent.

Example

#cloud-config

cluster:
  cluster_token: randomstring
  control_plane_host: cluster.example.com
  role: init
  config: |
    node-name: example-node