1
0
mirror of https://github.com/kairos-io/provider-rke2.git synced 2025-05-10 00:57:13 +00:00
Provider for Rancher's rke2
Go to file
Nianyu Shen 4414eb423d
chore: switch to us-docker.pkg.dev for image repo
Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2024-10-03 00:30:07 -07:00
.github/workflows rename edge-standard to agent-mode; edge-agent to palette-agent 2024-10-03 00:29:48 -07:00
scripts Merge pull request from kairos-io/reset-fix 2024-09-15 15:18:10 -07:00
.gitignore set proxy env in rke2 config 2022-12-17 11:05:39 +05:30
.pre-commit-config.yaml chore: switch to us-docker.pkg.dev for image repo 2024-10-03 00:30:07 -07:00
Earthfile bump golang version to 1.22 () 2024-04-24 12:59:09 +05:30
go.mod Update module gopkg.in/yaml.v2 to v3 () 2024-09-23 21:19:19 -07:00
go.sum Update module sigs.k8s.io/yaml to v1.4.0 () 2024-09-15 23:31:56 -07:00
install_rke2.sh Add provider for rke2 2022-08-18 12:11:22 -06:00
LICENSE Initial commit 2022-08-17 10:58:12 -06:00
main.go using manual command for rke2 service restarts () 2024-02-21 00:19:51 +05:30
README.md Add provider for rke2 2022-08-18 12:11:22 -06:00
renovate.json Add renovate.json () 2024-09-15 23:20:25 -07:00

C3OS RKE2 Cluster Plugin


This provider will configure a RKE2 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 RKE2 server. There should only be one device with this role per cluster.
  • controlplane: runs the RKE2 server.
  • worker: runs the RKE2 agent.

Example

#cloud-config

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