mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Migrate to Hetzner cloud
This commit is contained in:
parent
d3c99dad0b
commit
c311cd4f7e
37 changed files with 416 additions and 299 deletions
22
terraform/network.tf
Normal file
22
terraform/network.tf
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
resource "hcloud_network" "private_network" {
|
||||
name = "private_network"
|
||||
ip_range = "192.168.0.0/16"
|
||||
|
||||
labels = {
|
||||
environment = local.environment
|
||||
}
|
||||
}
|
||||
|
||||
resource "hcloud_network_subnet" "master_network" {
|
||||
network_id = "${hcloud_network.private_network.id}"
|
||||
type = "server"
|
||||
network_zone = "eu-central"
|
||||
ip_range = "192.168.1.0/24"
|
||||
}
|
||||
|
||||
resource "hcloud_network_subnet" "node_network" {
|
||||
network_id = "${hcloud_network.private_network.id}"
|
||||
type = "server"
|
||||
network_zone = "eu-central"
|
||||
ip_range = "192.168.2.0/24"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue