Go to file
Santhosh 123a7986ba
Merge pull request #77 from kairos-io/bootBefore
switch to boot.before for k3s
2023-12-22 18:59:06 +05:30
.github/workflows delete creating provider images 2023-12-18 08:56:11 +05:30
api remove flannel backend from agent 2023-12-20 16:57:13 +05:30
scripts Doing copy of images instead of mv as space may not be concern but cluster may get upgraded with same image 2023-02-20 10:06:23 -08:00
.gitignore proxy support 2022-11-23 16:22:48 +05:30
Earthfile Update golint 2023-12-18 09:01:29 +05:30
go.mod align module name w/ repo name 2023-10-08 18:20:34 -06:00
go.sum Use kairos-sdk instead 2023-04-20 09:38:04 +02:00
main.go switch to boot.before for k3s 2023-12-22 18:35:20 +05:30
README.md update to new name 2023-01-19 12:04:35 +01: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