Files
terraform-talos/openstack/README.md
Serge Logvinov f51aa4082a Add image
2022-05-16 21:27:02 +03:00

3.5 KiB

Talos on OVH Cloud

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

Tested on openstack version - Stein

  • Nova
  • Glance
  • Neutron
  • Cinder

Local utilities

  • terraform
  • talosctl
  • kubectl
  • yq

Network diagram

Kubernetes addons

Upload the talos image

Create the config file images/terraform.tfvars and add params.

# Body of images/terraform.tfvars

# Regions to use
regions          = ["GRA7", "GRA9"]
cd images
wget https://github.com/siderolabs/talos/releases/download/v1.0.5/openstack-amd64.tar.gz
tar -xzf openstack-amd64.tar.gz

terraform init && terraform apply

Prepare network

Create the config file prepare/terraform.tfvars and add params.

# Body of prepare/terraform.tfvars

# Regions to use
regions          = ["GRA7", "GRA9"]
make create-network

Prepare configs

Generate the default talos config

make create-config create-templates

Create the config file terraform.tfvars and add params.

# Body of terraform.tfvars

# OCCM Credits
ccm_username = "openstack-username"
ccm_password = "openstack-password"

# Number of kubernetes controlplane by zones
controlplane = {
  "GRA9" = {
    count         = 1,
    instance_type = "d2-4",
  },
}

# Number of kubernetes nodes by zones
instances = {
  "GRA9" = {
    web_count            = 1,
    web_instance_type    = "d2-2",
    worker_count         = 1,
    worker_instance_type = "d2-2"
  },
}

Bootstrap controlplane

make create-controlplane

Download configs

make create-kubeconfig

Deploy all other instances

make create-infrastructure

Known Issues