add kubernetes test for nfs mounts

This commit is contained in:
Pim Kunis 2024-03-22 22:19:44 +01:00
parent 217051981c
commit 9185beb663
3 changed files with 58 additions and 2 deletions

View file

@ -33,7 +33,7 @@ let
nfsExports = lib.strings.concatLines (
builtins.map
(share:
"${cfg.nfsRoot}${share} 192.168.30.0/${config.lab.networking.dmz.ipv4.prefixLength}(rw,sync,no_subtree_check,no_root_squash)"
"${cfg.nfsRoot}${share} 192.168.30.0/16(rw,sync,no_subtree_check,no_root_squash)"
)
nfsShares
);
@ -66,7 +66,7 @@ in
};
config = lib.mkIf cfg.enable {
networking.firewall.interfaces.${config.lab.networking.dmz.bridgeName}.allowedTCPPorts = [
networking.firewall.allowedTCPPorts = [
2049 # NFS
5432 # PostgeSQL
111 # NFS