File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,15 @@ The following example uses signature version 2. If you are in a region that supp
5454[source,terminal]
5555----
5656BUCKET_NAME=somebucket
57+ CLUSTER_NAME=cluster_name
5758FILEPATH="/${BUCKET_NAME}/${CLUSTER_NAME}-snapshot.db"
5859CONTENT_TYPE="application/x-compressed-tar"
5960DATE_VALUE=`date -R`
6061SIGNATURE_STRING="PUT\n\n${CONTENT_TYPE}\n${DATE_VALUE}\n${FILEPATH}"
6162ACCESS_KEY=accesskey
6263SECRET_KEY=secret
6364SIGNATURE_HASH=`echo -en ${SIGNATURE_STRING} | openssl sha1 -hmac ${SECRET_KEY} -binary | base64`
65+ HOSTED_CLUSTER_NAMESPACE=hosted_cluster_namespace
6466
6567oc exec -it etcd-0 -n ${HOSTED_CLUSTER_NAMESPACE} -- curl -X PUT -T "/var/lib/data/snapshot.db" \
6668 -H "Host: ${BUCKET_NAME}.s3.amazonaws.com" \
@@ -89,6 +91,20 @@ $ oc get secret <hosted_cluster_name>-etcd-encryption-key -o=jsonpath='{.data.ke
8991+
9092 You can decrypt this key when restoring a snapshot on a new cluster.
9193
94+ . Restart all etcd-writer deployments by entering the following command:
95+ +
96+ [source,terminal]
97+ ----
98+ $ oc scale deployment -n <control _plane_namespace > -- replicas=3 kube-apiserver openshift-apiserver openshift-oauth-apiserver
99+ ----
100+
101+ . Resume the reconciliation of the hosted cluster by entering the following command:
102+ +
103+ [source,terminal]
104+ ----
105+ $ oc patch -n <hosted _cluster_namespace > -p '[\{"op": "remove", "path": "/spec/pausedUntil"}]' -- type=json
106+ ----
107+
92108.Next steps
93109
94- Restore the etcd snapshot.
110+ Restore the etcd snapshot.
You can’t perform that action at this time.
0 commit comments