Login Pod

Procedure

  1. 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
  2. Use the command to take the OneDB Database server offline:
    onmode -kuy
  3. Perform any adminstration tasks needed with the server offline.
  4. Run the command to bring the OneDB Database server back online.
    oninit 
  5. 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.