mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-13 06:19:06 +02:00
Add longhorn
This commit is contained in:
13
oci-managed/oke/longhorn.tf
Normal file
13
oci-managed/oke/longhorn.tf
Normal 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
|
||||||
|
}
|
@@ -29,6 +29,19 @@ variable "tiller_enabled" {
|
|||||||
default = false
|
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_id" {}
|
||||||
variable "vcn_public_subnet_id" {
|
variable "vcn_public_subnet_id" {
|
||||||
type = string
|
type = string
|
||||||
|
Reference in New Issue
Block a user