Skip to content

Commit 735afd2

Browse files
committed
TELCODOCS#2230: Coordinating reboots for configuration changes
1 parent 27c094c commit 735afd2

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

edge_computing/policygenerator_for_ztp/ztp-configuring-managed-clusters-policygenerator.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ include::modules/ztp-customizing-a-managed-site-using-pgt.adoc[leveloffset=+1]
5555
5656
include::modules/ztp-monitoring-policy-deployment-progress.adoc[leveloffset=+1]
5757

58+
include::modules/ztp-coordinating-reboots-for-config-changes.adoc[leveloffset=+1]
59+
5860
include::modules/ztp-validating-the-generation-of-configuration-policy-crs.adoc[leveloffset=+1]
5961

6062
include::modules/ztp-restarting-policies-reconciliation.adoc[leveloffset=+1]
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * scalability_and_performance/ztp_far_edge/ztp-configuring-managed-clusters-policies.adoc
4+
ifeval::["{context}" == "ztp-configuring-managed-clusters-policygenerator"]
5+
:ztp:
6+
endif::[]
7+
8+
:_mod-docs-content-type: PROCEDURE
9+
[id="ztp-coordinating-reboots-for-config-changes_{context}"]
10+
ifdef::ztp[]
11+
= Coordinating reboots for configuration changes
12+
endif::ztp[]
13+
ifndef::ztp[]
14+
= Coordinating reboots for tuned profile changes
15+
endif::ztp[]
16+
17+
You can use {cgu-operator-full} to coordinate reboots across a fleet of spoke clusters when configuration changes require a reboot.
18+
19+
ifdef::ztp[]
20+
The following types of configuration changes typically require a reboot:
21+
22+
* Updates to tuning profiles that modify kernel parameters or system behavior.node-tuning-operator
23+
* Kubelet configuration updates.
24+
* Node-level changes delivered through `MachineConfig`, such as `sysctl` settings or system service changes.
25+
endif::ztp[]
26+
27+
ifndef::ztp[]
28+
These configuration changes include updates to tuning profiles that modify kernel parameters or system behavior.
29+
endif::ztp[]
30+
31+
{cgu-operator} ensures that only nodes with a degraded tuned profile, indicating a reboot is needed, are rebooted.
32+
33+
Instead of rebooting nodes after each individual change, you can apply all configuration updates through policies and then trigger a single, coordinated reboot.
34+
35+
.Prerequisites
36+
37+
* You have installed the {oc-first}.
38+
* You have logged in to the hub cluster as a user with `cluster-admin` privileges.
39+
* You have deployed and configured {cgu-operator}.
40+
41+
.Procedure
42+
43+
. Create the configuration policies and policy bindings for the tuning or configuration changes.
44+
45+
. Create a reboot policy on the hub cluster. This policy checks for degraded tuned profiles that indicate a reboot is needed.
46+
47+
. Create and apply the `ClusterGroupUpgrade` (CGU) custom resource (CR). In the `spec.managedPolicies` list, include all relevant configuration policies first, followed by the reboot policy and the optional `mcp-validator` policy.
48+
+
49+
After you apply the CGU custom resource, {cgu-operator} rolls out the configuration policies in order. When all policies are compliant, {cgu-operator} applies the reboot policy. This triggers a reboot of all nodes in the specified `MachineConfigPool`.
50+
51+
.Verification
52+
53+
* Confirm that all nodes in the `MachineConfigPool` have rebooted.
54+
* Verify that the `MachineConfigPool` reaches the `Updated` state.
55+
56+
ifeval::["{context}" == "ztp-configuring-managed-clusters-policygenerator"]
57+
:!ztp:
58+
endif::[]

scalability_and_performance/using-node-tuning-operator.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ include::modules/accessing-an-example-cluster-node-tuning-operator-specification
1515

1616
include::modules/cluster-node-tuning-operator-default-profiles-set.adoc[leveloffset=+1]
1717

18+
include::modules/ztp-coordinating-reboots-for-config-changes.adoc[leveloffset=+1]
19+
1820
include::modules/cluster-node-tuning-operator-verify-profiles.adoc[leveloffset=+1]
1921

2022
include::modules/custom-tuning-specification.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)