@@ -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:
0 commit comments