feat: add all of the terraform files
Signed-off-by: Vojtech Mares <iam@vojtechmares.com>
This commit is contained in:
parent
4dff9a8639
commit
3a2ac8bc50
9 changed files with 453 additions and 0 deletions
25
terraform/networks.tf
Normal file
25
terraform/networks.tf
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
resource "hcloud_network" "cthulhu" {
|
||||
name = "cthulhu-net"
|
||||
ip_range = "172.16.0.0/16"
|
||||
}
|
||||
|
||||
resource "hcloud_network_subnet" "masters" {
|
||||
network_id = hcloud_network.cthulhu.id
|
||||
type = "cloud"
|
||||
network_zone = "eu-central"
|
||||
ip_range = "172.16.1.0/24"
|
||||
}
|
||||
|
||||
resource "hcloud_network_subnet" "workers" {
|
||||
network_id = hcloud_network.cthulhu.id
|
||||
type = "cloud"
|
||||
network_zone = "eu-central"
|
||||
ip_range = "172.16.10.0/24"
|
||||
}
|
||||
|
||||
resource "hcloud_network_subnet" "service" {
|
||||
network_id = hcloud_network.cthulhu.id
|
||||
type = "cloud"
|
||||
network_zone = "eu-central"
|
||||
ip_range = "172.16.250.0/24"
|
||||
}
|
||||
Reference in a new issue