Getting Version Information from Kubernetes

You can use the kubectl command to get version and build information for MATRIXX Engine, while it is running.

Before you begin

The YAML manifests for Kubernetes pods, services, and StatefulSets contain MATRIXX Engine version information in the labels section.
Note: Version information can be obtained from any MATRIXX Engine Kubernetes object. Version information is the same for all objects.

Procedure

  1. If you do not know the object names, on the Kubernetes master node, run one of the following commands:
    • kubectl get pods
    • kubectl get svcs
    • kubectl get sts
    The 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
  2. 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 --namespace matrixx -o yaml
    • kubectl get svc object_name --namespace matrixx -o yaml
    • kubectl get sts object_name --namespace matrixx -o yaml
    The version information is listed as mtx-version in the labels section. In the following example, the proc-s1e1-0 pod is running version 5280, build 36:
    $ kubectl get pod --namespace matrixx proc-s1e1-0 -o yaml
    apiVersion: v1
    kind: Pod
    metadata:
      creationTimestamp: "2024-05-17T00:20:22Z"
      generateName: proc-s1e1-
      labels:
        app: proc-s1e1
        app.kubernetes.io/component: proc
        app.kubernetes.io/name: engine
        controller-revision-hash: proc-s1e1-8fc5dc65b
        engine: e1
        mtx-class: engine
        mtx-type: proc
        statefulset.kubernetes.io/pod-name: proc-s1e1-0
        subdomain: s1
        version: 5280-36
      name: proc-s1e1-0
      namespace: matrixx