Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cluster-02
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
K8S
cluster-02
Commits
b08cd86b
Verified
Commit
b08cd86b
authored
2 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Add OS reboot to rolling_restart kernel update
parent
dd4df7a5
No related branches found
No related tags found
No related merge requests found
Pipeline
#42737
passed with warnings
2 years ago
Stage: plan
Stage: apply
Stage: ansible
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/k8s/tasks/rolling_restart.yaml
+11
-1
11 additions, 1 deletion
ansible/k8s/tasks/rolling_restart.yaml
with
11 additions
and
1 deletion
ansible/k8s/tasks/rolling_restart.yaml
+
11
−
1
View file @
b08cd86b
...
@@ -19,9 +19,19 @@
...
@@ -19,9 +19,19 @@
run_once
:
true
run_once
:
true
when
:
rke2_drain_node_during_upgrade
when
:
rke2_drain_node_during_upgrade
-
name
:
Restart
RKE2 service on {{ inventory_hostname }}
-
name
:
Stop
RKE2 service on {{ inventory_hostname }}
ansible.builtin.service
:
ansible.builtin.service
:
name
:
"
rke2-{{
rke2_type
}}.service"
name
:
"
rke2-{{
rke2_type
}}.service"
state
:
stopped
-
name
:
Reboot the server on kernel update
reboot
:
msg
:
"
Reboot
initiated
by
Ansible
for
kernel
updates"
connect_timeout
:
5
reboot_timeout
:
300
pre_reboot_delay
:
0
post_reboot_delay
:
30
test_command
:
uptime
state
:
restarted
state
:
restarted
-
name
:
Wait for all nodes to be ready again
-
name
:
Wait for all nodes to be ready again
...
...
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