1
0
Fork 0

feat: add terraform

This commit is contained in:
Vojtěch Mareš 2024-05-13 09:46:54 +02:00
parent 1614412d2a
commit 43708777b4
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
10 changed files with 379 additions and 1 deletions

25
network.tf Normal file
View file

@ -0,0 +1,25 @@
resource "hcloud_network" "cthulhu" {
name = "cthulhu-net"
ip_range = "172.16.0.0/16"
}
resource "hcloud_network_subnet" "control_plane" {
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"
}