fast-pizza-24629
06/27/2023, 2:04 PM@kubernetes
decorator, I am not sure how to specify the nodeselector label(s). We have 3 labels (I've read that all 3 labels should be specified in a yaml pod/job definition). I have tried several ways (list, str, tuple(str)), but none seems to work. For example:
[spec.template.spec.nodeSelector: Invalid value: "nvidia-ampere-a10g,<http://veo.co/nodegroup-family=gpu_dem_g4_2x,nvidia.com/gpu=true|veo.co/nodegroup-family=gpu_dem_g4_2x,nvidia.com/gpu=true>": must be no more than 63 characters, spec.template.spec.nodeSelector: Invalid value: "nvidia-ampere-a10g,<http://veo.co/nodegroup-family=gpu_dem_g4_2x,nvidia.com/gpu=true|veo.co/nodegroup-family=gpu_dem_g4_2x,nvidia.com/gpu=true>": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')]
my labels have /
but the validation regex is only alphanumeric? any advice on how to specify several labels for the node selector on the decorator? thanks a lot 🙂