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
54
54
[source,terminal]
55
55
----
56
56
BUCKET_NAME=somebucket
57
+ CLUSTER_NAME=cluster_name
57
58
FILEPATH="/${BUCKET_NAME}/${CLUSTER_NAME}-snapshot.db"
58
59
CONTENT_TYPE="application/x-compressed-tar"
59
60
DATE_VALUE=`date -R`
60
61
SIGNATURE_STRING="PUT\n\n${CONTENT_TYPE}\n${DATE_VALUE}\n${FILEPATH}"
61
62
ACCESS_KEY=accesskey
62
63
SECRET_KEY=secret
63
64
SIGNATURE_HASH=`echo -en ${SIGNATURE_STRING} | openssl sha1 -hmac ${SECRET_KEY} -binary | base64`
65
+ HOSTED_CLUSTER_NAMESPACE=hosted_cluster_namespace
64
66
65
67
oc exec -it etcd-0 -n ${HOSTED_CLUSTER_NAMESPACE} -- curl -X PUT -T "/var/lib/data/snapshot.db" \
66
68
-H "Host: ${BUCKET_NAME}.s3.amazonaws.com" \
@@ -89,6 +91,20 @@ $ oc get secret <hosted_cluster_name>-etcd-encryption-key -o=jsonpath='{.data.ke
89
91
+
90
92
You can decrypt this key when restoring a snapshot on a new cluster.
91
93
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
+
92
108
.Next steps
93
109
94
- Restore the etcd snapshot.
110
+ Restore the etcd snapshot.
You can’t perform that action at this time.
0 commit comments