From d6526725023728179185d7a35668ce985ba325e1 Mon Sep 17 00:00:00 2001 From: HubbeKing Date: Tue, 21 Nov 2023 08:43:35 +0200 Subject: [PATCH] Add config parameter for NFS mount options --- k8s.jsonnet | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/k8s.jsonnet b/k8s.jsonnet index 63c0aa9..141ea64 100644 --- a/k8s.jsonnet +++ b/k8s.jsonnet @@ -59,6 +59,7 @@ nfs_server: "nfs.example.com", # server IP or hostname nfs_path: "/mnt/segments", # path on server to mount nfs_capacity: "1T", # storage capacity to report to k8s + nfs_mount_options: ["noatime"], # mount options to use (important for performance!) // PVC template storage class for statefulset in postgres sts_storage_class_name: "longhorn", @@ -559,7 +560,7 @@ capacity: { storage: $.config.nfs_capacity }, - mountOptions: ["fsc", "noatime"], + mountOptions: $.config.nfs_mount_options, nfs: { server: $.config.nfs_server, path: $.config.nfs_path,