1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00

GitHub-27741: Removing additional fields from new machine config

This commit is contained in:
Andrea Hoffer
2021-03-23 11:37:08 -04:00
committed by openshift-cherrypick-robot
parent 81b17179d7
commit 87f5ecd24c

View File

@@ -183,7 +183,7 @@ $ oc get machine clustername-8qw5l-master-0 \ <1>
----
<1> Specify the name of the master machine for the unhealthy node.
.. Edit the `new-master-machine.yaml` file that was created in the previous step.
.. Edit the `new-master-machine.yaml` file that was created in the previous step to assign a new name and remove unnecessary fields.
... Remove the entire `status` section:
+
@@ -217,14 +217,7 @@ status:
kind: AWSMachineProviderStatus
----
... Remove the `providerID` field:
+
[source,yaml]
----
providerID: aws:///us-east-1a/i-0fdb85790d76d0c3f
----
... Change the `name` field to a new name.
... Change the `metadata.name` field to a new name.
+
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`.
+
@@ -240,7 +233,7 @@ metadata:
...
----
... Update the `selfLink` field to use the new machine name from the previous step.
... Update the `metadata.selfLink` field to use the new machine name from the previous step.
+
[source,yaml]
----
@@ -252,6 +245,31 @@ metadata:
...
----
... Remove the `spec.providerID` field:
+
[source,yaml]
----
providerID: aws:///us-east-1a/i-0fdb85790d76d0c3f
----
... Remove the `metadata.annotations` and `metadata.generation` fields:
+
[source,yaml]
----
annotations:
machine.openshift.io/instance-state: running
...
generation: 2
----
... Remove the `metadata.resourceVersion` and `metadata.uid` fields:
+
[source,yaml]
----
resourceVersion: "13291"
uid: a282eb70-40a2-4e89-8009-d05dd420d31a
----
.. Delete the machine of the unhealthy member:
+
[source,terminal]