@@ -12,31 +12,49 @@ To monitor and observe the backup process, see "Observing the backup and restore
12
12
13
13
.Procedure
14
14
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:
16
16
+
17
17
[source,terminal]
18
18
----
19
19
$ 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"}]'
22
22
----
23
23
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:
25
25
+
26
26
[source,terminal]
27
27
----
28
28
$ 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 > \
30
30
-- type json -p '[{"op": "add", "path": "/spec/pausedUntil", "value": "true"}]'
31
31
----
32
32
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:
34
34
+
35
35
[source,terminal]
36
36
----
37
37
$ 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
40
58
----
41
59
42
60
. Create a YAML file that defines the `Backup` CR:
0 commit comments