r/kubernetes • u/New-Buy1696 • Sep 04 '26
Talos - How to provision a cluster from code instead of CLI?
I'm new to Talos so bear with me. I created a simple local cluster, cool:talosctl cluster create docker
Preferably, I want to configure a yaml file or such and create a pipeline which patches changes automatically. I just checked talhelper but it's archived since last week: https://github.com/budimanjojo/talhelper. I do see other community solutions. It feels however like I'm missing something but my knowledge is limited. What do teams / enterprises use in production to provision clusters and patches from pipeline?
29
Upvotes
24
u/bozho Sep 04 '26
We use Siderolabs' own Terraform talos provider to provision in-house clusters on Proxmox.
5
u/Blakaraz_ Sep 04 '26 edited Sep 04 '26
There is the talos terraform/tofu provider. Also Postfinance/Topf, and of course siderolabs itself also has omni (which is only free self hosted for non-production usecases).
Somewhat newish there is https://github.com/mirceanton/talstomize.
But in the end the important part are your patches with the desired config that you can have as yaml, not the way you bootstrap the cluster or apply them later. If you really want to do a pipeline I don't see the issue with the cli. At a certain scale you probably want to have an operator or service to manage clusters and their config.
3
u/Reasonable-Ladder300 Sep 04 '26
We use ansible for node initialisation and updating.
There are also various providers for kubernetes and talos in n opentofu/terraform
2
u/zedd_D1abl0 Sep 04 '26
For another option, look at Sidero Omni. It's a bit "extra", but it does do exactly what you want, and it does a good job. It's kinda similar to Terraform, but it's specific to Talos.
It does limit your authentication options though...
2
u/pindaroli Sep 04 '26
Explain better you desires… what is the problem install talos or install services in talos cluster?
2
u/2containers1cpu Sep 05 '26
Topf is a Talos orchestrator. Backed by a large company.
https://github.com/postfinance/topf
1
u/Preisschild k8s operator Sep 05 '26
I use the cluster-api provider so i can reconcile via kubernetes CRD resources. Unfortunately they have been deprecated by sidero, but maybe the community is large enough to maintain it independently.
1
u/commandopanda0 Sep 04 '26
Talhelper
11
u/[deleted] Sep 04 '26
[removed] — view removed comment