2022-11-04 12:06:45 -04:00
|
|
|
// Module included in the following assemblies:
|
|
|
|
|
//
|
2022-11-29 15:47:47 -05:00
|
|
|
// * microshift_troubleshooting/microshift-version.adoc
|
2022-11-08 08:53:49 -05:00
|
|
|
|
2022-11-29 15:47:47 -05:00
|
|
|
:_content-type: PROCEDURE
|
2022-11-08 08:53:49 -05:00
|
|
|
[id="microshift-version-api_{context}"]
|
2022-11-15 11:53:47 -05:00
|
|
|
= Checking the {product-title} version using the API
|
2022-11-04 12:06:45 -04:00
|
|
|
|
2023-01-17 16:36:30 -05:00
|
|
|
To begin troubleshooting, you must know your {product-title} version. One way to get this information is by using the API.
|
|
|
|
|
|
2022-11-04 12:06:45 -04:00
|
|
|
.Procedure
|
|
|
|
|
|
2022-11-08 08:53:49 -05:00
|
|
|
* To get the version number using the OpenShift CLI (`oc`), view the `kube-public/microshift-version` config map by running the following command:
|
2022-11-15 11:53:47 -05:00
|
|
|
+
|
2022-11-04 12:06:45 -04:00
|
|
|
[source,terminal]
|
|
|
|
|
----
|
|
|
|
|
$ oc get configmap -n kube-public microshift-version -o yaml
|
|
|
|
|
----
|
2022-11-29 15:47:47 -05:00
|
|
|
+
|
2022-11-04 12:06:45 -04:00
|
|
|
.Example output
|
|
|
|
|
[source,yaml]
|
|
|
|
|
----
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
data:
|
|
|
|
|
major: "4"
|
2023-08-09 09:18:48 -04:00
|
|
|
minor: "13"
|
|
|
|
|
version: 4.13.8-0.microshift-fa441af87431
|
2022-11-04 12:06:45 -04:00
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
2023-08-09 09:18:48 -04:00
|
|
|
creationTimestamp: "2023-08-03T21:06:11Z"
|
2022-11-04 12:06:45 -04:00
|
|
|
name: microshift-version
|
|
|
|
|
namespace: kube-public
|
|
|
|
|
----
|
2023-08-09 09:18:48 -04:00
|
|
|
//update output to 4.14
|