This repository contains Terraform resources for bringing up a cluster of Talos VMs on OpenStack using Terraform or OpenTofu.
A step-by-step guide can be found on our blog:
- 🇬🇧 English: Talos Linux on OpenStack: Step by Step
- 🇩🇪 German: Talos Linux auf OpenStack: Schritt für Schritt
Note
If you are a NETWAYS Cloud customer and want to deploy Talos there, please see the resources
on the netways-cloud
branch [Link] for a tweaked version.
While we strongly encourage reading the whole step by step guide linked above, here's a primer on how to get started with this repository.
- Clone the repository and initialize Terraform.
git clone https://github.com/NETWAYS/terraform-talos-openstack cd terraform-talos-openstack terraform init
- Configure the OpenStack provider in
main.tf
. For configuration options, see the official provider documentation. - Let Terraform provision the resources.
terraform apply
- Generate the Talos configuration(s). Use the Floating IP from the previous step's output.
talosctl gen secrets talosctl gen config talos-on-openstack https://<floating-ip>:6443 --with-secrets secrets.yaml
- Let Terraform provision the resources again to apply Talos' configuration(s).
terraform apply
- Bootstrap Kubernetes using
talosctl
.talosctl bootstrap -e <floating-ip> -n <floating-ip>
Feel free to open an issue using one of the issue templates available.
The material published in this repository is licensed under the Creative Commons Zero license.
A copy can be found in the LICENSE
file in this repository.