Skip to content

Commit

Permalink
Add longhorn
Browse files Browse the repository at this point in the history
  • Loading branch information
vcscsvcscs committed Apr 7, 2024
1 parent 01979dd commit 1191fad
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions oci-managed/oke/longhorn.tf
Original file line number Diff line number Diff line change
@@ -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
}
13 changes: 13 additions & 0 deletions oci-managed/oke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1191fad

Please sign in to comment.