switch volume to nfsv4

This commit is contained in:
vincent 2024-03-29 21:14:24 +01:00
parent 0b25eb194e
commit 117e9397a3
4 changed files with 8 additions and 8 deletions

View File

@ -4,7 +4,7 @@ job "csi-nfs-controller" {
task "csi-nfs-controller" {
driver = "docker"
config {
image = "registry.k8s.io/sig-storage/nfsplugin:v4.5.0"
image = "registry.k8s.io/sig-storage/nfsplugin:v4.6.0"
args = [
"--v=5",
"--nodeid=${attr.unique.hostname}",

View File

@ -5,7 +5,7 @@ job "csi-nfs-nodes" {
task "plugin" {
driver = "docker"
config {
image = "registry.k8s.io/sig-storage/nfsplugin:v4.5.0"
image = "registry.k8s.io/sig-storage/nfsplugin:v4.6.0"
args = [
"--v=5",
"--nodeid=${attr.unique.hostname}",

View File

@ -1,6 +1,7 @@
type = "csi"
id = "registry-docker"
name = "registry-docker"
external_id = "registry-docker"
plugin_id = "nfs"
capability {
access_mode = "multi-node-multi-writer"
@ -8,10 +9,9 @@ capability {
}
context {
server = "nfs.service.consul"
share = "/exports/nomad/registry/docker"
mountPermissions = "0"
share = "/nomad/registry/docker"
}
mount_options {
fs_type = "nfs"
mount_flags = [ "timeo=30", "intr", "vers=3", "_netdev" , "nolock" ]
mount_flags = [ "vers=4" ]
}

View File

@ -2,16 +2,16 @@ type = "csi"
id = "registry-ghcr"
name = "registry-ghcr"
plugin_id = "nfs"
external_id = "registry-ghcr"
capability {
access_mode = "multi-node-multi-writer"
attachment_mode = "file-system"
}
context {
server = "nfs.service.consul"
share = "/exports/nomad/registry/ghcr"
mountPermissions = "0"
share = "/nomad/registry/ghcr"
}
mount_options {
fs_type = "nfs"
mount_flags = [ "timeo=30", "intr", "vers=3", "_netdev" , "nolock" ]
mount_flags = [ "vers=4"]
}