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" { task "csi-nfs-controller" {
driver = "docker" driver = "docker"
config { config {
image = "registry.k8s.io/sig-storage/nfsplugin:v4.5.0" image = "registry.k8s.io/sig-storage/nfsplugin:v4.6.0"
args = [ args = [
"--v=5", "--v=5",
"--nodeid=${attr.unique.hostname}", "--nodeid=${attr.unique.hostname}",

View File

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

View File

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