@@ -19,7 +19,7 @@ This procedure requires API downtime.
19
19
20
20
.Procedure
21
21
22
- . First, set up your environment variables and scale down the API servers :
22
+ . First, set up your environment variables:
23
23
24
24
.. Set up environment variables for your hosted cluster by entering the following commands, replacing values as necessary:
25
25
+
@@ -45,29 +45,6 @@ $ CONTROL_PLANE_NAMESPACE="${HOSTED_CLUSTER_NAMESPACE}-${CLUSTER_NAME}"
45
45
$ oc patch -n ${HOSTED_CLUSTER_NAMESPACE} hostedclusters/${CLUSTER_NAME} -p '{"spec":{"pausedUntil":"true"}}' --type=merge
46
46
----
47
47
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
-
71
48
. Next, take a snapshot of etcd by using one of the following methods:
72
49
73
50
.. Use a previously backed-up snapshot of etcd.
@@ -263,16 +240,9 @@ $ oc scale -n ${CONTROL_PLANE_NAMESPACE} statefulset/etcd --replicas=3
263
240
$ oc get -n ${CONTROL_PLANE_NAMESPACE} pods -l app=etcd -w
264
241
----
265
242
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
-
273
243
. Restore reconciliation of the hosted cluster by entering the following command:
274
244
+
275
245
[source,terminal]
276
246
----
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
278
248
----
0 commit comments