Skip to content

Commit 479a855

Browse files
authored
Merge pull request #86051 from xenolinux/add-cl-after-pause
OSDOCS#12882:Add cluster after pausing the hosted cluster reconciliation
2 parents 49d4166 + 91e3164 commit 479a855

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/hcp-dr-oadp-backup-cp-workload.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,24 @@ $ oc --kubeconfig <management_cluster_kubeconfig_file> \
2121
--type json -p '[{"op": "add", "path": "/spec/pausedUntil", "value": "true"}]'
2222
----
2323

24+
. Get the infrastructure ID of your hosted cluster by running the following command:
25+
+
26+
[source,terminal]
27+
----
28+
$ oc get hostedcluster -n local-cluster <hosted_cluster_name> -o=jsonpath="{.spec.infraID}"
29+
----
30+
+
31+
Note the infrastructure ID to use in the next step.
32+
33+
. Pause the reconciliation of the `cluster.cluster.x-k8s.io` resource by running the following command:
34+
+
35+
[source,terminal]
36+
----
37+
$ oc patch cluster.cluster.x-k8s.io \
38+
-n local-cluster-<hosted_cluster_name> <hosted_cluster_infra_id> \
39+
--type json -p '[{"op": "add", "path": "/spec/paused", "value": true}]'
40+
----
41+
2442
. Pause the reconciliation of the `NodePool` resource by running the following command:
2543
+
2644
[source,terminal]

0 commit comments

Comments
 (0)