2024-03-19 17:19:47 +05:30
|
|
|
// Module included in the following assemblies:
|
|
|
|
|
//
|
2025-09-30 07:55:42 -04:00
|
|
|
// microshift_support/microshift-getting-node-id.adoc
|
2024-03-19 17:19:47 +05:30
|
|
|
|
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
2025-09-30 07:55:42 -04:00
|
|
|
[id="microshift-get-node-id-kubesystem_{context}"]
|
|
|
|
|
= Getting the node ID of a running node
|
2024-03-19 17:19:47 +05:30
|
|
|
|
2025-09-30 07:55:42 -04:00
|
|
|
Use either the of the following steps to get the ID of a running node.
|
2024-03-19 17:19:47 +05:30
|
|
|
|
|
|
|
|
.Procedure
|
|
|
|
|
|
2025-09-30 07:55:42 -04:00
|
|
|
* Get the ID of a running node using `oc get` by entering the following command:
|
2024-03-19 17:19:47 +05:30
|
|
|
+
|
|
|
|
|
[source,terminal]
|
|
|
|
|
----
|
|
|
|
|
$ oc get namespaces kube-system -o jsonpath={.metadata.uid}
|
|
|
|
|
----
|
|
|
|
|
.Example output
|
|
|
|
|
+
|
|
|
|
|
[source,terminal]
|
|
|
|
|
----
|
|
|
|
|
7cf13853-68f4-454e-8f5c-1af748cbfb1a
|
|
|
|
|
----
|
2024-04-11 12:13:15 -04:00
|
|
|
|
2025-09-30 07:55:42 -04:00
|
|
|
* Get the ID of a running node by retrieving it from the `cluster-id` file by entering the following command:
|
2024-03-19 17:19:47 +05:30
|
|
|
+
|
|
|
|
|
[source,terminal]
|
|
|
|
|
----
|
|
|
|
|
$ sudo cat /var/lib/microshift/cluster-id
|
|
|
|
|
----
|
|
|
|
|
.Example output
|
|
|
|
|
+
|
|
|
|
|
[source,terminal]
|
|
|
|
|
----
|
|
|
|
|
7cf13853-68f4-454e-8f5c-1af748cbfb1a
|
|
|
|
|
----
|