Added terraform script for Hetzner cloud (#8053)

This commit is contained in:
Fredrik Liv
2021-10-07 19:11:46 +02:00
committed by GitHub
parent 5fcf047191
commit e87d4e9ce3
12 changed files with 498 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
variable "zone" {
type = string
}
variable "prefix" {}
variable "machines" {
type = map(object({
node_type = string
size = string
image = string
}))
}
variable "ssh_public_keys" {
type = list(string)
}
variable "ssh_whitelist" {
type = list(string)
}
variable "api_server_whitelist" {
type = list(string)
}
variable "nodeport_whitelist" {
type = list(string)
}
variable "ingress_whitelist" {
type = list(string)
}
variable "private_network_cidr" {
default = "10.0.0.0/16"
}
variable "private_subnet_cidr" {
default = "10.0.10.0/24"
}