File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed
Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,16 @@ module "mariadb" {
201201 rg_name = azurerm_resource_group. rg . name
202202}
203203
204+ module "longhorn" {
205+ depends_on = [
206+ module . aks ,
207+ module . argo-cd
208+ ]
209+ source = " ./modules/longhorn/"
210+ rg_location = azurerm_resource_group. rg . location
211+ rg_name = azurerm_resource_group. rg . name
212+ }
213+
204214module "postgres" {
205215 depends_on = [
206216 module . aks ,
Original file line number Diff line number Diff line change 1+ locals {
2+ namespace = " longhorn-system"
3+ }
4+
5+ resource "kubernetes_namespace" "longhorn" {
6+ metadata {
7+ name = local. namespace
8+ }
9+ }
10+
11+ resource "helm_release" "longhorn" {
12+ name = " longhorn"
13+ repository = " https://charts.longhorn.io"
14+ chart = " longhorn/longhorn"
15+ version = " 1.8.1"
16+
17+ namespace = local. namespace
18+ }
Original file line number Diff line number Diff line change 1+ variable "rg_location" {
2+ type = string
3+ nullable = false
4+ }
5+
6+ variable "rg_name" {
7+ type = string
8+ nullable = false
9+ }
You can’t perform that action at this time.
0 commit comments