Login Pod
Procedure
-
First annotate the pod so kubernetes does not restart the pod while you are performing
administration tasks:
kubectl annotate pod onedb-server-0 livenessprobe=disabled --overwrite=true
-
Use the command to take the OneDB Database server offline:
onmode -kuy
- Perform any adminstration tasks needed with the server offline.
-
Run the command to bring the OneDB Database server back online.
oninit
-
Re-enable the liveness probe:
kubectl annotate pod onedb-server-0 livenessprobe=enabled --overwrite=true
Note: If you do not disable the liveness probe, once you take the OneDB Databaser server offline. The kubernetes liveness probe will begin to fail. After 3 failures of the liveness probe, kubernetes will restart the pod on its own.