Enable/Disable Liveness probe
When doing any type of diagnostic work on a container/pod, it is important that the liveness probe does not take effect and restart the pod. To prevent this from happening you can disable the liveness probe for the OneDB Database server.
To disable use the following kubectl
annotation:
kubectl annotate pod onedb-server-0 livenessprobe=disabled –overwrite=true
Once you are done with your diagnostic work you should re-enable the liveness probe.
To enable, use the following kubectl annotation:
kubectl annotate pod onedb-server-0 livenessprobe=enabled –overwrite=true