r/TalosLinux • • Dec 05 '25

Smallest single-node AWS EC2-based Kubernetes cluster

Hello,

I'm using Terraform to deploy small EC2 instances that run K8s using Talos. We chose this distro because is the safest we can find in our highly secure environment. The idea is to create small K8s clusters isolated from each other that will run custom code from our clients. This is a risky operation so we want to provide as much isolation as possible.

The point is that I inject all the config using cloud-init, all good but the cluster never starts, it seems that it needs someone to run a `talosctl bootstrap` command, which is not easy to automate.

Is there any way to automate this as part as the cloud-init script? so all the clusters get ready by themselves?

Thanks!

4 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/Maximum_Competitive Dec 08 '25

They are meant to be disposable, probably need to be recreated every night to ensure that latest security patches are in.

I'm not allowing any incoming connection to the machines, that includes the command to bootstrap. I didn't foresee this was going to be such a problem.

I may run ECS Fargate with a single container that comes up and does the thing. I'm going through the Lambda approach to trigger the bootstrapping, that may work too.

1

u/yebyen Dec 08 '25

How are you collecting logs? (Just curious)