[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 70dd172ba7
commit 8137c8df63
No known key found for this signature in database
GPG key ID: 0EB088298288D958

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"