Skip to content

Commit 3af8308

Browse files
committed
OSDOCS-9433-2: corrects cluster ID MicroShift
1 parent 3667cd8 commit 3af8308

File tree

3 files changed

+10
-26
lines changed

3 files changed

+10
-26
lines changed

microshift_support/microshift-getting-cluster-id.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ include::_attributes/attributes-microshift.adoc[]
66

77
toc::[]
88

9-
When opening a support case, you can give information about your cluster to Red Hat Support by providing the unique identifier (UID) of your cluster. To uniquely identify a {microshift-short} cluster, use the `kube-system` namespace metadata UID.
9+
When providing information to Red{nbsp}Hat Support, it is helpful to provide the unique identifier of your cluster. For {microshift-short}, you can get your cluster ID manually by using the {oc-first} or by retrieving the ID from a file.
1010

1111
[NOTE]
1212
====
13-
The cluster ID for a cluster gets created only after the {microshift-short} service runs for the first time after its installation.
13+
A cluster ID is created only after the {microshift-short} service runs for the first time after installation.
1414
====
1515

1616
include::modules/microshift-get-cluster-id-kubesystem.adoc[leveloffset=+1]
17+
1718
include::modules/microshift-get-nonrunning-cluster-id-kubesystem.adoc[leveloffset=+1]

modules/microshift-get-cluster-id-kubesystem.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
[id="microshift-get-cluster-id-kubesystem_{context}"]
77
= Getting the cluster ID of a running cluster
88

9-
For a cluster that is running, you can use either step1 or step2 to get the cluster ID.
9+
Use either the of the following steps to get the ID of a running cluster.
1010

1111
.Procedure
1212

13-
. Get the cluster ID of the cluster that is running by entering the following command:
13+
* Get the ID of a running cluster using `oc get` by entering the following command:
1414
+
1515
[source,terminal]
1616
----
@@ -22,7 +22,8 @@ $ oc get namespaces kube-system -o jsonpath={.metadata.uid}
2222
----
2323
7cf13853-68f4-454e-8f5c-1af748cbfb1a
2424
----
25-
. Optional. Get the cluster ID of the cluster that is running by entering the following command:
25+
26+
* Get the ID of a running cluster by retrieving it from the `cluster-id` file by entering the following command:
2627
+
2728
[source,terminal]
2829
----

modules/microshift-get-nonrunning-cluster-id-kubesystem.adoc

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="microshift-get-nonrunning-cluster-id-kubesystem_{context}"]
7-
= Getting the cluster ID of a nonrunning cluster
7+
= Getting the cluster ID of a stopped cluster
88

9-
For a cluster that is not running, you can get the cluster ID from the `cluster-id` file found in `/var/lib/microshift` directory.
9+
For a cluster that ran before, but is not running now, you can get the cluster ID from the `cluster-id` file in the `/var/lib/microshift` directory.
1010

1111
.Procedure
1212

13-
. Get the cluster ID of the cluster that is not running by entering the following command:
13+
* Get the ID of a stopped cluster by retrieving it from the `cluster-id` file by entering the following command:
1414
+
1515
[source,terminal]
1616
----
@@ -21,22 +21,4 @@ $ sudo cat /var/lib/microshift/cluster-id
2121
[source,terminal]
2222
----
2323
7cf13853-68f4-454e-8f5c-1af748cbfb1a
24-
----
25-
+
26-
[NOTE]
27-
====
28-
The {microshift-short} service copies the `kube-system` namespace metadata UID to the `cluster-id` file so that the UID is accessible when the cluster is not running. You can find the `cluster-id` file in the `/var/lib/microshift` directory.
29-
====
30-
31-
. You can view the {microshift-short} database files in the `/var/lib/microshift` directory by entering the following command:
32-
+
33-
[source,terminal]
34-
----
35-
$ sudo ls -l /var/lib/microshift
36-
----
37-
.Example output
38-
+
39-
[source,terminal]
40-
----
41-
-r-------- 1 root root 36 Mar 7 11:49 /var/lib/microshift/cluster-id
4224
----

0 commit comments

Comments
 (0)