Suspend Management of a TimesTenClassic Object
These sections discuss why you may want to suspend the management of your TimesTenClassic object by the Operator and then how to do it:
About Suspending Management
The Operator periodically examines the state of the TimesTen instances and the databases associated with each TimesTenClassic object. It takes actions to repair anything that is broken. You may have a situation in which you want to manually perform maintenance operations. In such a situation, you do not want the Operator to interfere and attempt to perform repair operations.
You could stop the Operator (by deleting the Deployment of the timesten-operator
). This action prevents the Operator from interfering. See "Revert to Manual Control" for more information. However, if you have more than one TimesTenClassic object and you delete the Operator, this interferes with the management of all the TimesTenClassic objects, when perhaps only one of them needs manual intervention.
Alternatively, you can direct the Operator to take no action for one TimesTenClassic object by specifying the .spec.ttspec.stopManaging
datum for this TimesTenClassic object. See "TimesTenClassicSpecSpec" for more information on this element. The Operator examines the value of .spec.ttspec.stopManaging
and if it has changed since the last time the Operator examined it, the Operator changes the state of the TimesTenClassic object to ManualInterventionRequired
. This causes the Operator to no longer examine the status of the TimesTen Pods, the containers, the instances, and the databases associated with the TimesTenClassic object. The Operator takes no action on the object or its Pods.
When you want the Operator to manage the TimesTenClassic object again, you change the value of the .spec.ttspec.reexamine
datum. See "About the ManualInterventionRequired State" for more information on the ManualInterventionRequired
state and the .spec.ttspec.reexamine
datum.
In this way, you can perform manual operations on TimesTen without deleting the Deployment of the timesten-operator
.
Suspend Management
This example illustrates how to use the .spec.ttspec.stopManaging
datum to direct the Operator to stop managing one of the TimesTenClassic objects running in your Kubernetes cluster. In this example, there are two TimesTenClassic objects (sample
and sample2
) that are running. There is a requirement for you to perform manual maintenance operations on the TimesTen databases associated with one of the objects (sample
, in this example). You want the Operator to stop managing this sample
TimesTenClassic object. However, you want the Operator to continue managing the other TimesTenClassic object (sample2
, in this example).
Perform these steps:
The sample
TimesTenClassic object is in the ManualInterventionRequired
state. The Operator has suspended the monitoring and the management of the sample
TimesTenClassic object. It will take no further action on this TimesTenClassic object or its Pods. You can now perform manual operations on your TimesTen databases. When you have completed such operations and are ready for the Operator to resume management, proceed to About Bringing Up One Database.