Add longhorn

This commit is contained in:
2024-04-07 19:49:46 +02:00
parent 01979dda35
commit 1191fad431
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
resource "helm_release" "longhorn" {
count = var.install_longhorn ? 1 : 0
namespace = "longhorn-system"
create_namespace = true
name = "longhorn"
repository = "https://charts.longhorn.io"
chart = "longhorn"
version = var.longhorn_chart_version
cleanup_on_fail = true
# Helm chart deployment can sometimes take longer than the default 5 minutes
timeout = var.timeout_seconds
}

View File

@@ -29,6 +29,19 @@ variable "tiller_enabled" {
default = false
}
variable "install_longhorn" {
default = true
}
variable "longhorn_chart_version" {
default = "1.6.1"
}
# Helm chart deployment can sometimes take longer than the default 5 minutes
variable "timeout_seconds" {
type = number
description = "Helm chart deployment can sometimes take longer than the default 5 minutes. Set a custom timeout here."
default = 800 # 10 minutes
}
variable "vcn_id" {}
variable "vcn_public_subnet_id" {
type = string