# NFS CSI Volume 配置
type = "csi"
id = "nfs-fnsync"
name = "nfs-fnsync"
external_id = "nfs-fnsync"

# 插件配置
plugin_id = "nfs"
capacity_min = "1GiB"
capacity_max = "100GiB"

# 挂载选项
mount_options {
  fs_type = "nfs4"
  mount_flags = ["rw", "relatime", "vers=4.2"]
}

# 访问模式
access_mode = "single-node-writer"
attachment_mode = "file-system"

# 拓扑约束
topology_request {
  preferred {
    topology {
      segments = {
        "rack" = "rack-1"
      }
    }
  }
  
  required {
    topology {
      segments = {
        "datacenter" = "dc1"
      }
    }
  }
}

# 参数配置
parameters {
  server = "snail"
  share = "/fs/1000/nfs/Fnsync"
}