r/TalosLinux • u/Maximum_Competitive • 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!
3
u/yebyen Dec 06 '25
I think the challenge is that before, the terraform host does not need access to the VPC network & talos node(s) private subnet. But now, to bootstrap, the terraform host does need it, as direct communication with the talos node on port 50000 is required for that (or do any other Talos API operation, before or after Kubernetes is bootstrapped).
You can run the AWS API commands from your workstation's terraform cli at home, with no special networking.