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 🙂user
06/27/2023, 5:22 PM$ python3.10 starter_flow.py run --with kubernetes:node_selector="<http://kubernetes.io/hostname=ip-10-10-9-120.us-west-2.compute.internal|kubernetes.io/hostname=ip-10-10-9-120.us-west-2.compute.internal>"fast-pizza-24629
06/27/2023, 5:46 PMuser
06/27/2023, 6:51 PM" in the usage above), the string should get passed down to K8s and it should work. The example i tried above had the / and it worked fine.fast-pizza-24629
06/27/2023, 6:52 PM