1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-get-node-id-kubesystem.adoc
2025-10-07 17:43:41 +00:00

37 lines
836 B
Plaintext

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