Terraform

The following is automatically generated reference documentation for Terraform by terraform-docs.

It can be generated via

$ terraform-docs -c docs/.terraform-docs.yaml terraform

Requirements

Name

Version

terraform

>= 0.14

local

>= 2.4.0

openstack

~> 1.54.0

template

>= 2.2.0

Providers

Name

Version

local

>= 2.4.0

openstack

~> 1.54.0

template

>= 2.2.0

Modules

No modules.

Resources

Name

Type

local_file.final_group_all

resource

local_file.final_networking

resource

local_file.inventory_yaook-k8s

resource

local_file.trampoline_gateways

resource

openstack_blockstorage_volume_v2.gateway-volume

resource

openstack_blockstorage_volume_v2.master-volume

resource

openstack_blockstorage_volume_v2.worker-volume

resource

openstack_compute_floatingip_associate_v2.gateway

resource

openstack_compute_instance_v2.gateway

resource

openstack_compute_instance_v2.master

resource

openstack_compute_instance_v2.worker

resource

openstack_compute_servergroup_v2.server_group

resource

openstack_networking_floatingip_v2.gateway

resource

openstack_networking_floatingip_v2.gw_vip_fip

resource

openstack_networking_network_v2.cluster_network

resource

openstack_networking_port_v2.gateway

resource

openstack_networking_port_v2.gw_vip_port

resource

openstack_networking_port_v2.master

resource

openstack_networking_port_v2.worker

resource

openstack_networking_router_interface_v2.cluster_router_iface

resource

openstack_networking_router_interface_v2.cluster_router_iface_v6

resource

openstack_networking_router_v2.cluster_router

resource

openstack_networking_subnet_v2.cluster_subnet

resource

openstack_networking_subnet_v2.cluster_v6_subnet

resource

openstack_objectstorage_container_v1.thanos_data

resource

openstack_compute_flavor_v2.gateway

data source

openstack_compute_flavor_v2.master

data source

openstack_compute_flavor_v2.worker

data source

openstack_images_image_v2.gateway

data source

openstack_images_image_v2.master

data source

openstack_images_image_v2.worker

data source

openstack_networking_network_v2.public_network

data source

template_file.trampoline_gateways

data source

Inputs

Name

Description

Type

Default

Required

azs

If ‘enable_az_management=true’ defines which availability zones of your cloud to use to distribute the spawned server for better HA. Additionally the count of the array will define how many gateway server will be spawned. The naming of the elements doesn’t matter if ‘enable_az_management=false’. It is also used for unique naming of gateways.

list(string)

[
“AZ1”,
“AZ2”,
“AZ3”
]

no

cluster_name

n/a

string

"managed-k8s"

no

create_root_disk_on_volume

n/a

bool

false

no

default_master_flavor

n/a

string

"M"

no

default_master_image_name

n/a

string

"Ubuntu 22.04 LTS x64"

no

default_master_root_disk_size

If ‘create_root_disk_on_volume=true’, the master flavor does not specify a disk size and no specific value has been given, the root disk volume will have this size.

number

50

no

default_worker_flavor

n/a

string

"M"

no

default_worker_image_name

n/a

string

"Ubuntu 22.04 LTS x64"

no

default_worker_root_disk_size

If ‘create_root_disk_on_volume=true’, the worker flavor does not specify a disk size and no specific value has been given, the root disk volume will have this size.

number

50

no

dns_nameservers_v4

A list of IPv4 addresses which will be configured as DNS nameservers of the IPv4 subnet.

list(string)

[]

no

dualstack_support

If set to true, dualstack support related resources will be (re-)created

bool

n/a

yes

enable_az_management

If set to false, the availability zone of instances will not be managed. This is useful in CI environments if the Cloud Is Full.

bool

true

no

gateway_flavor

n/a

string

"XS"

no

gateway_image_name

n/a

string

"Debian 12 (bookworm)"

no

gateway_root_disk_volume_size

If ‘create_root_disk_on_volume=true’ and the gateway flavor does not specify a disk size, the root disk volume will have this size.

number

10

no

gateway_root_disk_volume_type

If ‘create_root_disk_on_volume=true’, set the volume type of the root disk volume for Gateways. Can’t be configured separately for each instance. If left empty, the volume type specified in ‘root_disk_volume_type’ will be used.

string

""

no

gitlab_backend

If set to true, GitLab will be used as Terraform HTTP backend.

bool

false

no

gitlab_base_url

Base URL of GitLab for Terraform HTTP backend if ‘gitlab_backend=true’.

string

""

no

gitlab_project_id

If ‘gitlab_backend=true’, the Terraform state will be stored in the GitLab repo with this ID.

string

""

no

gitlab_state_name

If ‘gitlab_backend=true’, the terraform state file will have this name.

string

""

no

keypair

n/a

string

n/a

yes

master_azs

n/a

list(string)

[]

no

master_flavors

n/a

list(string)

[]

no

master_images

n/a

list(string)

[]

no

master_names

It can be used to uniquely identify masters

list(string)

[]

no

master_root_disk_sizes

If ‘create_root_disk_on_volume=true’ and the master flavor does not specify a disk size, the root disk volume of this particular instance will have this size.

list(number)

[]

no

master_root_disk_volume_types

If ‘create_root_disk_on_volume=true’, volume type for root disk of this particular control plane node. If left empty, the volume type specified in ‘root_disk_volume_type’ will be used.

list(string)

[]

no

masters

n/a

number

3

no

monitoring_manage_thanos_bucket

Create an object storage container for thanos.

bool

false

no

network_mtu

MTU for the network used for the cluster.

number

1450

no

public_network

n/a

string

"shared-public-IPv4"

no

root_disk_volume_type

If ‘create_root_disk_on_volume=true’, the volume type to be used as default for all instances. If left empty, default of IaaS environment is used.

string

""

no

subnet_cidr

n/a

string

"172.30.154.0/24"

no

subnet_v6_cidr

n/a

string

"fd00::/120"

no

thanos_delete_container

n/a

bool

false

no

timeout_time

n/a

string

"30m"

no

worker_anti_affinity_group_name

n/a

string

"cah-anti-affinity"

no

worker_azs

n/a

list(string)

[]

no

worker_flavors

n/a

list(string)

[]

no

worker_images

n/a

list(string)

[]

no

worker_join_anti_affinity_group

n/a

list(bool)

[]

no

worker_names

It can be used to uniquely identify workers

list(string)

[]

no

worker_root_disk_sizes

If ‘create_root_disk_on_volume=true’, size of the root disk of this particular worker node. If left empty, the root disk size specified in ‘default_worker_root_disk_size’ is used.

list(number)

[]

no

worker_root_disk_volume_types

If ‘create_root_disk_on_volume=true’, volume types for the root disk of this particular worker node. If left empty, the volume type specified in ‘root_disk_volume_type’ will be used.

list(string)

[]

no

workers

n/a

number

4

no

Outputs

No outputs.