33 lines
735 B
HCL
33 lines
735 B
HCL
# Longhorn
|
|
module "longhorn" {
|
|
source = "../../longhorn"
|
|
|
|
namespace = "longhorn-system"
|
|
k8s_config_yaml = var.k8s_config_yaml
|
|
wait_on = var.wait_on
|
|
}
|
|
|
|
# Configure ingress to allow forwarded headers
|
|
resource "kubernetes_manifest" "rke2-ingress-nginx-config" {
|
|
manifest = {
|
|
apiVersion = "helm.cattle.io/v1"
|
|
kind = "HelmChartConfig"
|
|
metadata = {
|
|
name = "rke2-ingress-nginx"
|
|
namespace = "kube-system"
|
|
}
|
|
spec = {
|
|
valuesContent = <<-EOT
|
|
controller:
|
|
config:
|
|
use-forwarded-headers: "true"
|
|
EOT
|
|
}
|
|
}
|
|
}
|
|
|
|
output "installed" {
|
|
value = true
|
|
depends_on = [module.longhorn.installed, kubernetes_manifest.rke2-ingress-nginx-config]
|
|
}
|