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

Merge branch 'addTolerations' into 'main'

Add tolerations

See merge request csusb-hpc!26
parents 8a2a7e55 0348dc7b
No related merge requests found
......@@ -44,6 +44,12 @@ class MySpawner(KubeSpawner):
'values': formdata.get('gputype', [0])
})
tolerationsExpression = [{
'key': 'nautilus.io/nrp-testing',
'operator': 'Exists',
'effect': 'NoSchedule',
}]
setattr(self, 'extra_pod_config', {
'affinity': {
'nodeAffinity': {
......@@ -53,8 +59,10 @@ class MySpawner(KubeSpawner):
}],
},
},
}
})
},
'tolerations': tolerationsExpression,
})
setattr(self, 'startTimeout', 1200)
......
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