4 Upgrade the TimesTen Operator and TimesTen Databases

New TimesTen releases may include bug fixes, security fixes, or new features for the TimesTen databases, or new versions of the TimesTen CRDs and TimesTen Operator. Every new TimesTen release is made available as a container image in Oracle Container Registry. The changes between TimesTen releases are described in Changes in This Release in Oracle TimesTen In-Memory Database Release Notes.

To upgrade the TimesTen Operator and TimesTen databases, you first have to determine which TimesTen release your TimesTen Operator and TimesTen databases are using. See Example 4-1 and Example 4-2.

Example 4-1 Determining the TimesTen Release of the TimesTen Operator

This example requests information on the Pod of the TimesTen Operator to determine the TimesTen release of the TimesTen container image.

$ kubectl get pods -n <namespace>
NAME                            READY   STATUS    RESTARTS   AGE
timesten-db-0                    3/3     Running   0          3d
timesten-db-1                    2/3     Running   0          3d
timesten-operator-<unique-id>    1/1     Running   0          3d

$ kubectl describe pod timesten-operator-<unique-id> -n <namespace> | grep Image:
   Image: container-registry.oracle.com/timesten/timesten:22.1.1.35.0

Example 4-2 Determining the TimesTen Release of the TimesTen Databases

This example requests information on the timesten-db TimesTenClassic object to determine the TimesTen release of the TimesTen container image.

$ kubectl describe ttc timesten-db -n <namespace> | grep Image:
    Image:  container-registry.oracle.com/timesten/timesten:22.1.1.35.0
...
Once you determined that a new TimesTen release is available in Oracle Container Registry, follow the procedures described below to upgrade the TimesTen CRD, the TimesTen Operator, and the TimesTen Classic databases.

Note:

All examples and procedures in this chapter assume that during the stack configuration you specified a namespace other than default for the deployment of the TimesTen Operator.