Skip to content

Commit 72ad3e6

Browse files
committed
[OCPBUGS-13540]:Removing scaledown API steps from HCP docs
1 parent 57ffe21 commit 72ad3e6

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

modules/hosted-cluster-etcd-backup-restore-on-premise.adoc

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This procedure requires API downtime.
1919
2020
.Procedure
2121

22-
. First, set up your environment variables and scale down the API servers:
22+
. First, set up your environment variables:
2323

2424
.. Set up environment variables for your hosted cluster by entering the following commands, replacing values as necessary:
2525
+
@@ -45,29 +45,6 @@ $ CONTROL_PLANE_NAMESPACE="${HOSTED_CLUSTER_NAMESPACE}-${CLUSTER_NAME}"
4545
$ oc patch -n ${HOSTED_CLUSTER_NAMESPACE} hostedclusters/${CLUSTER_NAME} -p '{"spec":{"pausedUntil":"true"}}' --type=merge
4646
----
4747

48-
.. Scale down the API servers by entering the following commands:
49-
+
50-
... Scale down the `kube-apiserver`:
51-
+
52-
[source,terminal]
53-
----
54-
$ oc scale -n ${CONTROL_PLANE_NAMESPACE} deployment/kube-apiserver --replicas=0
55-
----
56-
57-
... Scale down the `openshift-apiserver`:
58-
+
59-
[source,terminal]
60-
----
61-
$ oc scale -n ${CONTROL_PLANE_NAMESPACE} deployment/openshift-apiserver --replicas=0
62-
----
63-
64-
... Scale down the `openshift-oauth-apiserver`:
65-
+
66-
[source,terminal]
67-
----
68-
$ oc scale -n ${CONTROL_PLANE_NAMESPACE} deployment/openshift-oauth-apiserver --replicas=0
69-
----
70-
7148
. Next, take a snapshot of etcd by using one of the following methods:
7249

7350
.. Use a previously backed-up snapshot of etcd.
@@ -263,16 +240,9 @@ $ oc scale -n ${CONTROL_PLANE_NAMESPACE} statefulset/etcd --replicas=3
263240
$ oc get -n ${CONTROL_PLANE_NAMESPACE} pods -l app=etcd -w
264241
----
265242

266-
.. Scale up all etcd-writer deployments by entering the following command:
267-
+
268-
[source,terminal]
269-
----
270-
$ oc scale deployment -n ${CONTROL_PLANE_NAMESPACE} --replicas=3 kube-apiserver openshift-apiserver openshift-oauth-apiserver
271-
----
272-
273243
. Restore reconciliation of the hosted cluster by entering the following command:
274244
+
275245
[source,terminal]
276246
----
277-
$ oc patch -n ${HOSTED_CLUSTER_NAMESPACE} hostedclusters/${CLUSTER_NAME} -p '{"spec":{"pausedUntil":""}}' --type=merge
247+
$ oc patch -n ${HOSTED_CLUSTER_NAMESPACE} hostedclusters/${CLUSTER_NAME} -p '{"spec":{"pausedUntil":"null"}}' --type=merge
278248
----

0 commit comments

Comments
 (0)