Skip to content

Commit 637c297

Browse files
authored
Merge pull request #30922 from bergerhoffer/github-27741
GitHub-27741: Removing additional fields from new machine config
2 parents a4fc797 + c991e1c commit 637c297

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

modules/restore-replace-stopped-etcd-member.adoc

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ $ oc get machine clustername-8qw5l-master-0 \ <1>
183183
----
184184
<1> Specify the name of the master machine for the unhealthy node.
185185

186-
.. Edit the `new-master-machine.yaml` file that was created in the previous step.
186+
.. Edit the `new-master-machine.yaml` file that was created in the previous step to assign a new name and remove unnecessary fields.
187187

188188
... Remove the entire `status` section:
189189
+
@@ -217,14 +217,7 @@ status:
217217
kind: AWSMachineProviderStatus
218218
----
219219

220-
... Remove the `providerID` field:
221-
+
222-
[source,yaml]
223-
----
224-
providerID: aws:///us-east-1a/i-0fdb85790d76d0c3f
225-
----
226-
227-
... Change the `name` field to a new name.
220+
... Change the `metadata.name` field to a new name.
228221
+
229222
It is recommended to keep the same base name as the old machine and change the ending number to the next available number. In this example, `clustername-8qw5l-master-0` is changed to `clustername-8qw5l-master-3`.
230223
+
@@ -240,7 +233,7 @@ metadata:
240233
...
241234
----
242235

243-
... Update the `selfLink` field to use the new machine name from the previous step.
236+
... Update the `metadata.selfLink` field to use the new machine name from the previous step.
244237
+
245238
[source,yaml]
246239
----
@@ -252,6 +245,31 @@ metadata:
252245
...
253246
----
254247

248+
... Remove the `spec.providerID` field:
249+
+
250+
[source,yaml]
251+
----
252+
providerID: aws:///us-east-1a/i-0fdb85790d76d0c3f
253+
----
254+
255+
... Remove the `metadata.annotations` and `metadata.generation` fields:
256+
+
257+
[source,yaml]
258+
----
259+
annotations:
260+
machine.openshift.io/instance-state: running
261+
...
262+
generation: 2
263+
----
264+
265+
... Remove the `metadata.resourceVersion` and `metadata.uid` fields:
266+
+
267+
[source,yaml]
268+
----
269+
resourceVersion: "13291"
270+
uid: a282eb70-40a2-4e89-8009-d05dd420d31a
271+
----
272+
255273
.. Delete the machine of the unhealthy member:
256274
+
257275
[source,terminal]

0 commit comments

Comments
 (0)