commit 8568709b82ccbb3d69d104d9cbc7126fe6c6bbe8 parent 40f7fe75da402336db6b774c8a32314455224489 Author: Andreas Gruhler <agruhl@gmx.ch> Date: Mon, 7 Feb 2022 22:14:37 +0100 feat(nomad): allow_privileged for csi Diffstat:
M | nomad.sh | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/nomad.sh b/nomad.sh @@ -62,6 +62,16 @@ cat << EOF > /etc/nomad.d/client.hcl client { enabled = true } + +# CSI Node plugins must run as privileged Docker jobs +# because they use bidirectional mount propagation +# in order to mount disks to the underlying host: +# https://learn.hashicorp.com/tutorials/nomad/stateful-workloads-csi-volumes +plugin "docker" { + config { + allow_privileged = true + } +} EOF # ..and as a Nomad server agent