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
eb8fe6a2
Commit
eb8fe6a2
authored
9 months ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
Enable regular cleaning of stuck kubernetes pods notebooks
parent
b0a69478
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
cesnet-central/playbooks/notebooks.yaml
+13
-0
13 additions, 0 deletions
cesnet-central/playbooks/notebooks.yaml
with
13 additions
and
0 deletions
cesnet-central/playbooks/notebooks.yaml
+
13
−
0
View file @
eb8fe6a2
...
...
@@ -118,6 +118,19 @@
with_fileglob
:
-
"
../extra/*.yaml"
when
:
true
# Workaround for pods stuck in "Terminating" state
-
name
:
Regular cleanup of failed user notebooks pods
vars
:
name
:
"
{{
item
|
basename
|
splitext
|
first
}}"
cron
:
cron_file
:
"
notebooks-{{
name
}}-cleaner"
name
:
"
Notebooks
{{
name
}}
cleanup"
minute
:
"
*/2"
hour
:
"
*"
job
:
"
KUBECONFIG=$HOME/.kube/config
/usr/local/bin/k8s-pods-cleaner.sh
'{{
name
}}'
app=jupyterhub,component=singleuser-server
--yes
>/dev/null
2>&1"
user
:
egi
with_fileglob
:
-
"
../deployments/*.yaml"
-
hosts
:
nfs
become
:
true
tasks
:
...
...
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