Skip to content

airfocusio/hcloud-talos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b2ff68a · Dec 19, 2024

History

48 Commits
Sep 3, 2024
May 8, 2023
Oct 17, 2023
Oct 17, 2023
Feb 22, 2022
Feb 22, 2022
May 8, 2023
Dec 19, 2024
Nov 28, 2023
Oct 17, 2023
Sep 3, 2024
Sep 3, 2024
Feb 26, 2022

Repository files navigation

hcloud-talos

Commands

This CLI tool provides an easy way to manage Talos powered Kubernetes clusters on the Hetzner Cloud. Bootstrapping a new cluster performs the following steps:

  • Create private network 10.0.0.0/16 for inter-node communication
  • Create placement group to ensure controlplane nodes to not run on the same physical machine
  • Create load balancer to access the controlplane nodes Kubernetes API server (port 6443) or Talos API server (port 50000)
  • Create firewall rules to block access to nodes from outside of the private network
  • Create first controlplane node
  • Install Hetzner Cloud Controller Manger
  • Install Hetzner CSI Driver

Usage

# ATTENTION: this folder will contain all crucial files and they must be stored somewhere secure!
mkdir my-cluster
cd my-cluster

export HCLOUD_TOKEN=...
# bootstrap cluster
hcloud-talos -v bootstrap-cluster --talos-version=1.5.3 --kubernetes-version=1.28.2 my-cluster controlplane-%id%

# add more nodes
hcloud-talos -v add-node --talos-version=1.5.3 controlplane-%id% --controlplane
hcloud-talos -v add-node --talos-version=1.5.3 worker-%id%