Obtain Version Information from Kubernetes
You can obtain version and build information for the MATRIXX Engine, while running, with Kubernetes commands.
Before you begin
Note: While version information can be
obtained from any Kubernetes object, in any correctly running MATRIXX Engine deployment, version information is the same for all objects.
Procedure
-
If you do not know the object names, on the kubernetes master node, run one of
the following commands:
kubectl get podskubectl get svcskubectl get stsThe object names are shown in the NAME column, as shown in the example output from kubectl get pods below:
$ kubectl get pods NAME READY STATUS RESTARTS AGE ckpt-s1e1-0 1/1 Running 0 44m mgr-s1e1 0/1 Completed 0 44m proc-s1e1-0 1/1 Running 0 44m publ-s1e1-0 1/1 Running 0 44m tralb-proc-s1e1-0 1/1 Running 0 44m tralb-publ-s1e1-0 1/1 Running 0 44m
-
Obtain version information for an object with one of the following commands,
where object_name is the pod, service, or StatefulSet you
are inspecting:
kubectl get pod object_name -n mtx-dev -o yamlkubectl get svc object_name -n mtx-dev -o yamlkubectl get sts object_name -n mtx-dev -o yamlThe version information is listed as mtx-version in the labels section. In the following example, the proc-s1e1-0 pod is running version 5122, build 36:
$ kubectl get pod -n mtx-dev proc-s1e1-0 -o yaml apiVersion: v1 kind: Pod metadata: creationTimestamp: "2019-11-22T23:31:31Z" generateName: proc-s1e1- labels: app: proc-s1e1 controller-revision-hash: proc-s1e1-86bc9f9df7 monitor-app: proc-s1e1-0 monitor-service: "yes" mtx-class: engine mtx-type: proc mtx-version: 5122_36 name: proc-s1e1-0 namespace: mtx-dev