From 33c1f786e5a17c2303f527911dff989b734fabf8 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 11 Nov 2023 00:16:58 +0000 Subject: [PATCH] move grafana to nfs [ci skip] --- modules/kubernetes/monitoring/main.tf | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/kubernetes/monitoring/main.tf b/modules/kubernetes/monitoring/main.tf index df24e7b7..625d93f4 100644 --- a/modules/kubernetes/monitoring/main.tf +++ b/modules/kubernetes/monitoring/main.tf @@ -163,12 +163,16 @@ resource "kubernetes_persistent_volume" "prometheus_grafana_pv" { } access_modes = ["ReadWriteOnce"] persistent_volume_source { - iscsi { - target_portal = "iscsi.viktorbarzin.lan:3260" - iqn = "iqn.2020-12.lan.viktorbarzin:storage:monitoring:grafana" - lun = 0 - fs_type = "ext4" + nfs { + path = "/mnt/main/grafana" + server = "10.0.10.15" } + # iscsi { + # target_portal = "iscsi.viktorbarzin.lan:3260" + # iqn = "iqn.2020-12.lan.viktorbarzin:storage:monitoring:grafana" + # lun = 0 + # fs_type = "ext4" + # } } } }