modules/cluster/deployment: add operator to needForSpeed nomad affinity

This commit is contained in:
Astro 2022-11-28 01:16:54 +01:00
parent 07bfd31ee7
commit d99d4129f3
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ in
} ];
affinities = lib.optionals config.deployment.needForSpeed (builtins.genList (i: {
attribute = "\${meta.c3d2.cpuSpeed}";
operator = ">=";
value = toString (i + 1);
weight = 10 + i;
}) 10);