[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:
parent
61a532054e
commit
1b78e44ab6
1 changed files with 7 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue