Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
magnum
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kubernetes
magnum
Merge requests
!192
npd via helm
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
npd via helm
npd
into
cern/train
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Ricardo Rocha
requested to merge
npd
into
cern/train
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
cern/train
cern/train (base)
and
latest version
latest version
8a043933
1 commit,
3 years ago
2 files
+
6
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
magnum/drivers/common/templates/kubernetes/fragments/enable-auto-healing.sh
+
4
−
1
Options
@@ -4,9 +4,12 @@ printf "Starting to run ${step}\n"
.
/etc/sysconfig/heat-params
_gcr_prefix
=
${
CONTAINER_INFRA_PREFIX
:-
k8s
.gcr.io/
}
cern_chart_enabled
=
$(
echo
"
${
CERN_CHART_ENABLED
}
"
|
tr
'[:upper:]'
'[:lower:]'
)
# Install NPD if the cern chart is not enabled (otherwise it will be installed via helm)
# Either auto scaling or auto healing we need CA to be deployed
if
[[
"
$(
echo
$AUTO_HEALING_ENABLED
|
tr
'[:upper:]'
'[:lower:]'
)
"
=
"true"
||
"
$(
echo
$NPD_ENABLED
|
tr
'[:upper:]'
'[:lower:]'
)
"
=
"true"
]]
;
then
if
[[
"
$(
echo
$AUTO_HEALING_ENABLED
|
tr
'[:upper:]'
'[:lower:]'
)
"
=
"true"
&&
"
${
cern_chart_enabled
}
"
!=
"true"
||
"
$(
echo
$NPD_ENABLED
|
tr
'[:upper:]'
'[:lower:]'
)
"
=
"true"
&&
"
${
cern_chart_enabled
}
"
!=
"true"
]]
;
then
# Generate Node Problem Detector manifest file
NPD_DEPLOY
=
/srv/magnum/kubernetes/manifests/npd.yaml
Loading