[ci skip] fix: add mount_options to nfs_volume PV spec

StorageClass mountOptions only apply during dynamic provisioning.
Static PVs (created by Terraform) need mount_options set explicitly.
Without this, all CSI NFS mounts default to hard,timeo=600 — the
exact problem we were trying to fix.
This commit is contained in:
Viktor Barzin 2026-03-02 20:22:47 +00:00
parent 61a532054e
commit 1b78e44ab6

View file

@ -43,6 +43,13 @@ resource "kubernetes_persistent_volume" "this" {
storage_class_name = "nfs-truenas"
volume_mode = "Filesystem"
mount_options = [
"soft",
"timeo=30",
"retrans=3",
"actimeo=5",
]
persistent_volume_source {
csi {
driver = "nfs.csi.k8s.io"