Open mabunixda opened 2 years ago
I shared a response to this in the other issue. Hope it's helpful: https://github.com/SynologyOpenSource/synology-csi/issues/14#issuecomment-1015568068
Hi @mabunixda,
There's no problem with your volume configuration. (That means, putting access_mode
and attachment_mode
inside the capability
is the correct way for the latest Nomad.)
It's an expected behavior that the access mode of a volume shows <none>
before any job claimed it or after all jobs released it.
And for your csi plugin job configuration, I made the following changes:
datacenters = ["dc1"]
to jobnetwork_mode = "host"
to task.config
task "plugin" {
driver = "docker"
config {
image = "docker.io/synology/synology-csi:v1.0.0"
privileged = true
+ network_mode = "host"
volumes = [
....
]
Then ran it on Nomad v1.3.1, did nomad volume create
and ran my jobs, everything worked well.
If you failed to mount the csi volume into your job, missing network_mode = "host"
might be the reason.
I was able to get this working. Check here: https://github.com/SynologyOpenSource/synology-csi/issues/14#issuecomment-1795059676
The creation of a storage does work, but there is still some problem with the access mode within nomad:
my current configuration for the nomad csi plugin job is like this
and the volume definition for the
nomad volume create
is likeOriginally posted by @mabunixda in https://github.com/SynologyOpenSource/synology-csi/issues/14#issuecomment-1015232999