From fdf0d070373a966d0c0695c62f7fc3750f4aa969 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sun, 2 Apr 2023 00:51:29 +0200
Subject: [PATCH] feat(terraform): Add fixed internal IP for gw host

---
 terraform/k8s01/network.tf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/terraform/k8s01/network.tf b/terraform/k8s01/network.tf
index d6a3a4077..ae6321fff 100644
--- a/terraform/k8s01/network.tf
+++ b/terraform/k8s01/network.tf
@@ -14,4 +14,5 @@ resource "hcloud_server_network" "srvnetwork" {
   count      = length(module.gw.server_ids)
   server_id  = element(module.gw.server_ids, count.index)
   network_id = hcloud_network.network.id
+  ip         = cidrhost(var.subnet_cidr, count.index + 2)
 }
\ No newline at end of file
-- 
GitLab