Open cneira opened 3 years ago
update more detail description.
diff --git a/driver/driver.go b/driver/driver.go
index c5fc599..c7e65da 100644
--- a/driver/driver.go
+++ b/driver/driver.go
@@ -83,6 +83,7 @@ var (
SendSignals: false,
Exec: false,
FSIsolation: drivers.FSIsolationImage,
+ NetIsolationModes: []drivers.NetIsolationMode{drivers.NetIsolationModeGroup, drivers.NetIsolationModeTask},
}
)
mode = "cni/firecracker"
to network block, then did not report this error; but consul get the wrong ip address.I think using address_mode = "alloc"
and network -> mode = "cni/firecracker"
, nomad will assign the ip address for service, so firecracker-task-driver
should use assigned ip address.
but, it seems that firecracker apply a new ip address: https://github.com/cneira/firecracker-task-driver/blob/master/driver/options.go#L165
containerd task driver use cfg.NetworkIsolation.Path
for new container/allocation : https://github.com/Roblox/nomad-driver-containerd/blob/master/containerd/driver.go#L452
@cneira Thanks for your update.
Now also can not support
address_mode = "alloc"
cni conf: /etc/cni/conf.d/firecracker.conflist
job config
docs for address_mode in service block: https://www.nomadproject.io/docs/job-specification/service#address_mode
run job
nomad status <alloc-id>
got the below error message:Originally posted by @ox0spy in https://github.com/cneira/firecracker-task-driver/issues/9#issuecomment-862496014