第 3 章 Getting your node ID
When providing information to Red Hat Support, it is helpful to provide the unique identifier of your node. For MicroShift, you can get your node ID manually by using the OpenShift CLI (oc) or by retrieving the ID from a file.
A node ID is created only after the MicroShift service runs for the first time after installation.
3.1. 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 getby entering the following command:$ oc get namespaces kube-system -o jsonpath={.metadata.uid}Example output
7cf13853-68f4-454e-8f5c-1af748cbfb1aGet the ID of a running node by retrieving it from the
cluster-idfile by entering the following command:$ sudo cat /var/lib/microshift/cluster-idExample output
7cf13853-68f4-454e-8f5c-1af748cbfb1a