Skip to content
Snippets Groups Projects
Commit b11ad246 authored by Dung Vu's avatar Dung Vu
Browse files

Update my_spawner.py

parent c2072b3c
No related branches found
No related tags found
No related merge requests found
Pipeline #46147 passed
......@@ -46,6 +46,17 @@ class MySpawner(KubeSpawner):
'values': formdata.get('gputype', [0])
})
if gpus == 0:
nodeSelectorTermsExpressions.append({
'key': 'nvidia.com/gpu.product',
'operator': 'NotIn',
'values': [ "NVIDIA-GeForce-RTX-3090", "NVIDIA-A100-80GB-PCIe-MIG-1g.10gb", "NVIDIA-L40", "NVIDIA-A10",
"NVIDIA-RTX-A4000", "NVIDIA-RTX-A5000", "NVIDIA-RTX-A5000", "NVIDIA-A100-SXM4-80GB", "NVIDIA-GeForce-GTX-1080-Ti",
"NVIDIA-GeForce-RTX-2080-Ti"]
})
tolerationsExpression = [{
'key': 'nautilus.io/csu-tide',
'operator': 'Exists',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment