mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
32 lines
730 B
Plaintext
32 lines
730 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * microshift_troubleshooting/microshift-version.adoc
|
|
|
|
:_content-type: PROCEDURE
|
|
[id="microshift-version-api_{context}"]
|
|
= Checking the {product-title} version using the API
|
|
|
|
.Procedure
|
|
|
|
* To get the version number using the OpenShift CLI (`oc`), view the `kube-public/microshift-version` config map by running the following command:
|
|
+
|
|
[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
|
|
----
|