Self Healing
Open the Web Terminal then run this command.
oc get pod
Auto recovery Look for the Pod with the name as
quarkus-todo-app-xxxxxxxand it's status isRunning. Please note/observe theRESTARTSvalue as well.
Auto recovery Run this command to get into the container. Don't forget to replace the
POD_NAMEwith your quarkus-todo-app-xxxxxxx pod.oc rsh POD_NAMEKill the Java application process with this command.
kill 1Observe the web console you'll see some animation.

Auto recovery Run this command again and observe the
RESTARTSvalue. Basically, Kubernetes/OpenShift will keep checking the Pod status for us, if it's not ready, Kubernetes assumes that the application container might have some issue and it'll try to restart the the container automatically.oc get pod
Last updated