Files
terraform-talos/hetzner
2022-02-14 19:47:50 +02:00
..
2021-12-24 23:10:05 +02:00
2021-12-25 16:56:17 +02:00
2021-11-21 08:58:17 +02:00
2021-05-29 11:26:02 +03:00
2021-12-25 16:48:54 +02:00
2021-12-07 20:34:47 +02:00
2021-12-07 20:34:47 +02:00
2021-08-17 18:28:46 +03:00
2021-12-25 16:56:17 +02:00
2021-09-18 22:08:33 +03:00
2021-12-07 20:34:47 +02:00
2021-05-29 11:26:02 +03:00
2021-12-29 06:46:39 +02:00
2021-12-25 00:41:26 +02:00
2021-12-25 00:41:26 +02:00
2021-12-24 23:10:05 +02:00

Terraform examples

Local utilities

  • terraform
  • talosctl
  • kubectl
  • yq

Talos on Hetzner Cloud

This terraform example install Talos on HCloud with IPv4/IPv6 support.

Kubernetes addons

Prepare the base image

Use packer (system_os/hetzner) to upload image.

Create control plane lb

open config file terraform.tfvars and add params.

# counts and type of kubernetes master nodes
controlplane = {
    count   = 1,
    type    = "cpx11"
    type_lb = ""
}

# regions to use
regions = ["nbg1", "fsn1", "hel1"]

# counts and type of worker nodes by redion
instances = {
    "nbg1" = {
      web_count            = 0,
      web_instance_type    = "cx11",
      worker_count         = 0,
      worker_instance_type = "cx11",
    },
    "fsn1" = {
      web_count            = 0,
      web_instance_type    = "cx11",
      worker_count         = 0,
      worker_instance_type = "cx11",
    }
    "hel1" = {
      web_count            = 1,
      web_instance_type    = "cx11",
      worker_count         = 1,
      worker_instance_type = "cx11",
    }
}
make create-lb

Install control plane

Generate the default talos config

make create-config create-templates

And deploy the kubernetes master nodes

make create-controlplane

Bootstrap the first node

talosctl --talosconfig _cfgs/talosconfig config endpoint $controlplane_firstnode
talosctl --talosconfig _cfgs/talosconfig --nodes $controlplane_firstnode bootstrap
make create-kubeconfig

Deploy all other instances

make create-infrastructure