use nfs for dbaas [ci skip]

This commit is contained in:
Viktor Barzin 2023-11-10 22:19:40 +00:00
parent 9ef1b97f83
commit 404ee3f3f0
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -76,12 +76,16 @@ resource "kubernetes_deployment" "mysql" {
}
volume {
name = "mysql-persistent-storage"
iscsi {
target_portal = "iscsi.viktorbarzin.lan:3260"
iqn = "iqn.2020-12.lan.viktorbarzin:storage:dbaas:mysql"
lun = 0
fs_type = "ext4"
nfs {
path = "/mnt/main/mysql"
server = "10.0.10.15"
}
# iscsi {
# target_portal = "iscsi.viktorbarzin.lan:3260"
# iqn = "iqn.2020-12.lan.viktorbarzin:storage:dbaas:mysql"
# lun = 0
# fs_type = "ext4"
# }
}
}
}