modules/cluster/deployment: add operator to needForSpeed nomad affinity
This commit is contained in:
parent
07bfd31ee7
commit
d99d4129f3
|
@ -74,6 +74,7 @@ in
|
||||||
} ];
|
} ];
|
||||||
affinities = lib.optionals config.deployment.needForSpeed (builtins.genList (i: {
|
affinities = lib.optionals config.deployment.needForSpeed (builtins.genList (i: {
|
||||||
attribute = "\${meta.c3d2.cpuSpeed}";
|
attribute = "\${meta.c3d2.cpuSpeed}";
|
||||||
|
operator = ">=";
|
||||||
value = toString (i + 1);
|
value = toString (i + 1);
|
||||||
weight = 10 + i;
|
weight = 10 + i;
|
||||||
}) 10);
|
}) 10);
|
||||||
|
|
Loading…
Reference in New Issue