Skip to content

Commit a1d5b4c

Browse files
authored
Merge pull request #1540 from fbrettnich/volume-size
Updated maximum volume size to 10240
2 parents 9f2324a + 89fd804 commit a1d5b4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

agents.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ resource "null_resource" "agents" {
130130
}
131131

132132
resource "hcloud_volume" "longhorn_volume" {
133-
for_each = { for k, v in local.agent_nodes : k => v if((v.longhorn_volume_size >= 10) && (v.longhorn_volume_size <= 10000) && var.enable_longhorn) }
133+
for_each = { for k, v in local.agent_nodes : k => v if((v.longhorn_volume_size >= 10) && (v.longhorn_volume_size <= 10240) && var.enable_longhorn) }
134134

135135
labels = {
136136
provisioner = "terraform"
@@ -146,7 +146,7 @@ resource "hcloud_volume" "longhorn_volume" {
146146
}
147147

148148
resource "null_resource" "configure_longhorn_volume" {
149-
for_each = { for k, v in local.agent_nodes : k => v if((v.longhorn_volume_size >= 10) && (v.longhorn_volume_size <= 10000) && var.enable_longhorn) }
149+
for_each = { for k, v in local.agent_nodes : k => v if((v.longhorn_volume_size >= 10) && (v.longhorn_volume_size <= 10240) && var.enable_longhorn) }
150150

151151
triggers = {
152152
agent_id = module.agents[each.key].id

kube.tf.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ module "kube-hetzner" {
209209
taints = [],
210210
count = 1
211211

212-
# In the case of using Longhorn, you can use Hetzner volumes instead of using the node's own storage by specifying a value from 10 to 10000 (in GB)
212+
# In the case of using Longhorn, you can use Hetzner volumes instead of using the node's own storage by specifying a value from 10 to 10240 (in GB)
213213
# It will create one volume per node in the nodepool, and configure Longhorn to use them.
214214
# Something worth noting is that Volume storage is slower than node storage, which is achieved by not mentioning longhorn_volume_size or setting it to 0.
215215
# So for something like DBs, you definitely want node storage, for other things like backups, volume storage is fine, and cheaper.
@@ -455,7 +455,7 @@ module "kube-hetzner" {
455455
# After the cluster is deployed, you can always use HelmChartConfig definition to tweak the configuration.
456456

457457
# Also, you can choose to use a Hetzner volume with Longhorn. By default, it will use the nodes own storage space, but if you add an attribute of
458-
# longhorn_volume_size (⚠️ not a variable, just a possible agent nodepool attribute) with a value between 10 and 10000 GB to your agent nodepool definition, it will create and use the volume in question.
458+
# longhorn_volume_size (⚠️ not a variable, just a possible agent nodepool attribute) with a value between 10 and 10240 GB to your agent nodepool definition, it will create and use the volume in question.
459459
# See the agent nodepool section for an example of how to do that.
460460

461461
# To disable Hetzner CSI storage, you can set the following to "true", default is "false".

0 commit comments

Comments
 (0)