1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-version-api.adoc
2025-11-06 13:59:35 +00:00

35 lines
882 B
Plaintext

// Module included in the following assemblies:
//
// * microshift_troubleshooting/microshift-version.adoc
:_mod-docs-content-type: PROCEDURE
[id="microshift-version-api_{context}"]
= Checking the {microshift-short} version using the API
[role="_abstract"]
To begin troubleshooting, you must know your {microshift-short} version. One way to get this information is by using the API.
.Procedure
* To get the version number using the {oc-first}, 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: "20"
version: 4.20.0-0.microshift-fa441af87431
kind: ConfigMap
metadata:
creationTimestamp: "2025-11-03T21:06:11Z"
name: microshift-version
namespace: kube-public
----