Red Hat OpenShift Workshop For Developers
  • OpenShift Workshop For Developers
    • Getting Started
  • Application Containerization
    • Building Application
    • Application Packaging
    • Running Application Container
    • Externalize Application Configurations
  • Deployment On OpenShift
    • Database Deployment Via Web Console
    • Build And Deploy Application Using S2I
    • Configure Application With ConfigMap
    • Simple Application Scaling
  • Monitoring And Logging
    • View Application Logs
    • Application Monitoring
  • Scaling
    • Resources Allocation For Application
    • Scale Application Automatically
  • Resiliency
    • Application Health Checks
    • Self Healing
Powered by GitBook
On this page
  1. Resiliency

Self Healing

PreviousApplication Health Checks

Last updated 2 years ago

  1. Open the Web Terminal then run this command.

    oc get pod
  2. Look for the Pod with the name as quarkus-todo-app-xxxxxxx and it's status is Running. Please note/observe the RESTARTS value as well.

  3. Run this command to get into the container. Don't forget to replace the POD_NAME with your quarkus-todo-app-xxxxxxx pod.

    oc rsh POD_NAME
  4. Kill the Java application process with this command.

    kill 1
  5. Observe the web console you'll see some animation.

  6. Run this command again and observe the RESTARTS value. 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
Auto recovery
Auto recovery
Auto recovery