Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notebooks-operations
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
702
Projekty
notebooks-operations
Commits
08b1bed7
Commit
08b1bed7
authored
2 months ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
Support the use-case without GPU nodes
parent
0e0c4347
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/playbooks/k8s.yaml
+3
-2
3 additions, 2 deletions
common/playbooks/k8s.yaml
with
3 additions
and
2 deletions
common/playbooks/k8s.yaml
+
3
−
2
View file @
08b1bed7
...
@@ -607,9 +607,10 @@
...
@@ -607,9 +607,10 @@
when
:
true
when
:
true
-
name
:
Get GPU node hostnames
-
name
:
Get GPU node hostnames
shell
:
|-
shell
:
|-
kubectl get nodes --no-headers -o custom-columns=NAME:.metadata.name | grep gpu
kubectl get nodes --no-headers -o custom-columns=NAME:.metadata.name | grep
-- -
gpu
-
register
:
gpu_nodes
register
:
gpu_nodes
changed_when
:
true
changed_when
:
false
failed_when
:
gpu_nodes.rc != 0 and gpu_nodes.rc !=
1
when
:
true
when
:
true
-
name
:
Print GPU node hostnames
-
name
:
Print GPU node hostnames
debug
:
debug
:
...
...
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