Skip to content

Commit 9571c85

Browse files
committed
OSDOCS#12284: HCP: Update OADP backup, resotre, and disaster recovery
1 parent 445d7da commit 9571c85

File tree

2 files changed

+56
-8
lines changed

2 files changed

+56
-8
lines changed

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

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,49 @@ To monitor and observe the backup process, see "Observing the backup and restore
1212

1313
.Procedure
1414

15-
. Scale down the `NodePool` replicas to `0` by running the following command:
15+
. Pause the reconciliation of the `HostedCluster` resource by running the following command:
1616
+
1717
[source,terminal]
1818
----
1919
$ oc --kubeconfig <management_cluster_kubeconfig_file> \
20-
scale nodepool -n <hosted_cluster_namespace> \
21-
<node_pool_name> --replicas 0
20+
patch hostedcluster -n <hosted_cluster_namespace> <hosted_cluster_name> \
21+
--type json -p '[{"op": "add", "path": "/spec/pausedUntil", "value": "true"}]'
2222
----
2323

24-
. Pause the reconciliation of the `HostedCluster` resource by running the following command:
24+
. Pause the reconciliation of the `NodePool` resource by running the following command:
2525
+
2626
[source,terminal]
2727
----
2828
$ oc --kubeconfig <management_cluster_kubeconfig_file> \
29-
patch hostedcluster -n <hosted_cluster_namespace> <hosted_cluster_name> \
29+
patch nodepool -n <hosted_cluster_namespace> <node_pool_name> \
3030
--type json -p '[{"op": "add", "path": "/spec/pausedUntil", "value": "true"}]'
3131
----
3232

33-
. Pause the reconciliation of the `NodePool` resource by running the following command:
33+
. Pause the reconciliation of the `AgentCluster` resource by running the following command:
3434
+
3535
[source,terminal]
3636
----
3737
$ oc --kubeconfig <management_cluster_kubeconfig_file> \
38-
patch nodepool -n <hosted_cluster_namespace> <node_pool_name> \
39-
--type json -p '[{"op": "add", "path": "/spec/pausedUntil", "value": "true"}]'
38+
annotate agentcluster -n <hosted_control_plane_namespace> \
39+
cluster.x-k8s.io/paused=true --all'
40+
----
41+
42+
. Pause the reconciliation of the `AgentMachine` resource by running the following command:
43+
+
44+
[source,terminal]
45+
----
46+
$ oc --kubeconfig <management_cluster_kubeconfig_file> \
47+
annotate agentmachine -n <hosted_control_plane_namespace> \
48+
cluster.x-k8s.io/paused=true --all'
49+
----
50+
51+
. Annotate the `HostedCluster` resource to prevent the deletion of the hosted control plane namespace by running the following command:
52+
+
53+
[source,terminal]
54+
----
55+
$ oc --kubeconfig <management_cluster_kubeconfig_file> \
56+
annotate hostedcluster -n <hosted_cluster_namespace> <hosted_cluster_name> \
57+
hypershift.openshift.io/skip-delete-hosted-controlplane-namespace=true
4058
----
4159

4260
. Create a YAML file that defines the `Backup` CR:

modules/hcp-dr-oadp-restore.adoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,36 @@ $ oc --kubeconfig <management_cluster_kubeconfig_file> \
104104
--type json -p '[{"op": "add", "path": "/spec/pausedUntil", "value": "false"}]'
105105
----
106106

107+
. Start the reconciliation of the Agent provider resources that you paused during backing up of the control plane workload:
108+
109+
.. Start the reconciliation of the `AgentCluster` resource by running the following command:
110+
+
111+
[source,terminal]
112+
----
113+
$ oc --kubeconfig <management_cluster_kubeconfig_file> \
114+
annotate agentcluster -n <hosted_control_plane_namespace> \
115+
cluster.x-k8s.io/paused- --overwrite=true --all
116+
----
117+
118+
.. Start the reconciliation of the `AgentMachine` resource by running the following command:
119+
+
120+
[source,terminal]
121+
----
122+
$ oc --kubeconfig <management_cluster_kubeconfig_file> \
123+
annotate agentmachine -n <hosted_control_plane_namespace> \
124+
cluster.x-k8s.io/paused- --overwrite=true --all
125+
----
126+
127+
. Remove the `hypershift.openshift.io/skip-delete-hosted-controlplane-namespace-` annotation in the `HostedCluster` resource to avoid manually deleting the hosted control plane namespace by running the following command:
128+
+
129+
[source,terminal]
130+
----
131+
$ oc --kubeconfig <management_cluster_kubeconfig_file> \
132+
annotate hostedcluster -n <hosted_cluster_namespace> <hosted_cluster_name> \
133+
hypershift.openshift.io/skip-delete-hosted-controlplane-namespace- \
134+
--overwrite=true --all
135+
----
136+
107137
. Scale the `NodePool` resource to the desired number of replicas by running the following command:
108138
+
109139
[source,terminal]

0 commit comments

Comments
 (0)