2022-11-04 12:06:45 -04:00
|
|
|
// Module included in the following assemblies:
|
|
|
|
|
//
|
2022-11-08 08:53:49 -05:00
|
|
|
// * microshift_architecture/microshift-version-api.adoc
|
|
|
|
|
|
|
|
|
|
:_content-type: CONCEPT
|
|
|
|
|
[id="microshift-version-api_{context}"]
|
2022-11-04 12:06:45 -04:00
|
|
|
|
2022-11-15 11:53:47 -05:00
|
|
|
= Checking the {product-title} version 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
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
.Example output
|
|
|
|
|
[source,yaml]
|
|
|
|
|
----
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
data:
|
|
|
|
|
major: "4"
|
|
|
|
|
minor: "10"
|
|
|
|
|
version: 4.10.0-0.microshift-e6980e25
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
|
|
|
|
creationTimestamp: "2022-08-08T21:06:11Z"
|
|
|
|
|
name: microshift-version
|
|
|
|
|
namespace: kube-public
|
|
|
|
|
----
|