Skip to content

Commit 03ddc42

Browse files
Merge pull request #62528 from lahinson/osdocs-5331-hcp-pause-reconciliation
2 parents ef36f38 + d75eb41 commit 03ddc42

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

hosted_control_planes/hcp-managing.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include::modules/updates-for-hosted-control-planes.adoc[leveloffset=+1]
1515
include::modules/updating-node-pools-for-hcp.adoc[leveloffset=+1]
1616
include::modules/configuring-node-pools-for-hcp.adoc[leveloffset=+1]
1717
//restarting hosted control plane components
18-
//pausing reconciliation
18+
include::modules/hosted-control-planes-pause-reconciliation.adoc[leveloffset=+1]
1919
//debugging why nodes have not joined the cluster
2020
//using service-level DNS for control plane services
2121
//configuring metrics sets
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * hosted_control_planes/hcp-managing.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="hosted-control-planes-pause-reconciliation_{context}"]
7+
= Pausing the reconciliation of a hosted cluster and hosted control plane
8+
9+
If you are a cluster instance administrator, you can pause the reconciliation of a hosted cluster and hosted control plane. You might want to pause reconciliation when you back up and restore an etcd database or when you need to debug problems with a hosted cluster or hosted control plane.
10+
11+
.Procedure
12+
13+
. To pause reconciliation for a hosted cluster and hosted control plane, populate the `pausedUntil` field of the `HostedCluster` resource, as shown in the following examples:
14+
+
15+
** To pause the reconciliation until a specific time, specify an RFC339 timestamp:
16+
+
17+
[source,terminal]
18+
----
19+
PAUSED_UNTIL="2022-03-03T03:28:48Z"
20+
kubectl patch -n <hosted-cluster-namespace> hostedclusters/<hosted-cluster-name> -p '{"spec":{"pausedUntil":"'${PAUSED_UNTIL}'"}}' --type=merge
21+
----
22+
+
23+
The reconciliation is paused until the specified time is passed.
24+
+
25+
** To pause the reconciliation indefinitely, pass a Boolean value of `true`:
26+
+
27+
[source,terminal]
28+
----
29+
PAUSED_UNTIL="true"
30+
kubectl patch -n <hosted-cluster-namespace> hostedclusters/<hosted-cluster-name> -p '{"spec":{"pausedUntil":"'${PAUSED_UNTIL}'"}}' --type=merge
31+
----
32+
+
33+
The reconciliation is paused until you remove the field from the `HostedCluster` resource.
34+
+
35+
When the pause reconciliation field is populated for the `HostedCluster` resource, the field is automatically added to the associated `HostedControlPlane` resource.
36+
37+
. To remove the `pausedUntil` field, enter the following patch command:
38+
+
39+
[source,terminal]
40+
----
41+
kubectl patch -n <hosted-cluster-namespace> hostedclusters/<hosted-cluster-name> -p '{"spec":{"pausedUntil":null}}' --type=merge
42+
----
43+
44+
45+
46+
47+

0 commit comments

Comments
 (0)