From 1b78e44ab67a98ef87245db423c75dd674319035 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Mon, 2 Mar 2026 20:22:47 +0000 Subject: [PATCH] [ci skip] fix: add mount_options to nfs_volume PV spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- modules/kubernetes/nfs_volume/main.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/kubernetes/nfs_volume/main.tf b/modules/kubernetes/nfs_volume/main.tf index c6427a10..6d703998 100644 --- a/modules/kubernetes/nfs_volume/main.tf +++ b/modules/kubernetes/nfs_volume/main.tf @@ -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"