use nfs to prometheus [ci skip]
This commit is contained in:
parent
2c1fc5fd83
commit
5fa0c93f00
1 changed files with 10 additions and 6 deletions
|
|
@ -34,7 +34,7 @@ resource "kubernetes_persistent_volume_claim" "prometheus_server_pvc" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "kubernetes_persistent_volume" "example" {
|
resource "kubernetes_persistent_volume" "prometheus_server_pvc" {
|
||||||
metadata {
|
metadata {
|
||||||
name = "prometheus-iscsi-pv"
|
name = "prometheus-iscsi-pv"
|
||||||
}
|
}
|
||||||
|
|
@ -44,12 +44,16 @@ resource "kubernetes_persistent_volume" "example" {
|
||||||
}
|
}
|
||||||
access_modes = ["ReadWriteOnce"]
|
access_modes = ["ReadWriteOnce"]
|
||||||
persistent_volume_source {
|
persistent_volume_source {
|
||||||
iscsi {
|
nfs {
|
||||||
fs_type = "ext4"
|
path = "/mnt/main/prometheus"
|
||||||
iqn = "iqn.2020-12.lan.viktorbarzin:storage:monitoring:prometheus"
|
server = "10.0.10.15"
|
||||||
lun = 0
|
|
||||||
target_portal = "iscsi.viktorbarzin.me:3260"
|
|
||||||
}
|
}
|
||||||
|
# iscsi {
|
||||||
|
# fs_type = "ext4"
|
||||||
|
# iqn = "iqn.2020-12.lan.viktorbarzin:storage:monitoring:prometheus"
|
||||||
|
# lun = 0
|
||||||
|
# target_portal = "iscsi.viktorbarzin.me:3260"
|
||||||
|
# }
|
||||||
|
|
||||||
}
|
}
|
||||||
persistent_volume_reclaim_policy = "Retain"
|
persistent_volume_reclaim_policy = "Retain"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue