mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
37 lines
836 B
Plaintext
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
|
|
---- |