From 3abfdb6cc6680712e3d206ab4ded3594ff0087f0 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 20 Dec 2021 19:41:44 +0100 Subject: [PATCH] Improve documentation for Network support in Nomad --- docs/configuration.md | 10 ++++++++++ docs/resources/client.example.hcl | 1 + 2 files changed, 11 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index 251ea95..28778cd 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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]` diff --git a/docs/resources/client.example.hcl b/docs/resources/client.example.hcl index 2854bc6..0b75c70 100644 --- a/docs/resources/client.example.hcl +++ b/docs/resources/client.example.hcl @@ -4,6 +4,7 @@ client { "server domain 1", "server domain 2" ] + cni_path = "/usr/lib/cni" } plugin "docker" {