Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
csusb-hpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
csusb-prp
csusb-hpc
Commits
3fa4c11c
Commit
3fa4c11c
authored
2 years ago
by
Dung Vu
Browse files
Options
Downloads
Plain Diff
Merge branch 'addTolerations' into 'main'
Add tolerations See merge request
!26
parents
8a2a7e55
0348dc7b
No related branches found
Branches containing commit
No related tags found
1 merge request
!26
Add tolerations
Pipeline
#29866
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extraFiles/my_spawner.py
+10
-2
10 additions, 2 deletions
extraFiles/my_spawner.py
with
10 additions
and
2 deletions
extraFiles/my_spawner.py
+
10
−
2
View file @
3fa4c11c
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment