Improve documentation for Network support in Nomad

This commit is contained in:
Sebastian Serth
2021-12-20 19:41:44 +01:00
committed by Sebastian Serth
parent 2bf9b10564
commit 3abfdb6cc6
2 changed files with 11 additions and 0 deletions

View File

@ -51,3 +51,13 @@ limits {
http_max_conns_per_client = 0
}
```
### Enable Networking Support in Nomad
In order to allow full networking support in Nomad, the `containernetworking-plugins` are required on the host. They can be either installed manually or through a package manager. In the latter case, the installation path might differ. Hence, add the following line to the `client` directive of the Nomad configuration in `/etc/nomad.d/client.hcl`:
```hcl
cni_path = "/usr/lib/cni"
```
If the path is not set up correctly or the dependency is missing, the following error will be shown in Nomad: `failed to find plugin "bridge" in path [/opt/cni/bin]`

View File

@ -4,6 +4,7 @@ client {
"server domain 1",
"server domain 2"
]
cni_path = "/usr/lib/cni"
}
plugin "docker" {