이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 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 링크 복사링크가 클립보드에 복사되었습니다!
Retrieving the node ID enables you to uniquely identify a device within your deployment. The node ID is required to register the node with central management systems, analyze system logs and alerts, and ensure that configuration updates are targeted accurately.
Procedure
Get the ID of a running node using
oc getby entering the following command:oc get namespaces kube-system -o jsonpath={.metadata.uid}$ oc get namespaces kube-system -o jsonpath={.metadata.uid}Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
7cf13853-68f4-454e-8f5c-1af748cbfb1a
7cf13853-68f4-454e-8f5c-1af748cbfb1aCopy to Clipboard Copied! Toggle word wrap Toggle overflow Get the ID of a running node by retrieving it from the
cluster-idfile by entering the following command:sudo cat /var/lib/microshift/cluster-id
$ sudo cat /var/lib/microshift/cluster-idCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
7cf13853-68f4-454e-8f5c-1af748cbfb1a
7cf13853-68f4-454e-8f5c-1af748cbfb1aCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2. Getting the node ID of a stopped node 링크 복사링크가 클립보드에 복사되었습니다!
When the MicroShift service is inactive, you can prevent the use of standard API commands by retrieving the node ID from the file system. You can use this ID to identify offline nodes for disaster recovery, verify backup compatibility, and troubleshoot issues.
Procedure
Get the ID of a stopped node by retrieving it from the
cluster-idfile by entering the following command:sudo cat /var/lib/microshift/cluster-id
$ sudo cat /var/lib/microshift/cluster-idCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
7cf13853-68f4-454e-8f5c-1af748cbfb1a
7cf13853-68f4-454e-8f5c-1af748cbfb1aCopy to Clipboard Copied! Toggle word wrap Toggle overflow