title: How to configure a livenessProbe in Kubernetes based Eclipse Microprofile
body: <p>I am running a rest service based on Eclipse Microprofile. My service provides a health check. The result of such a health check (which is providing a lot of information) looks for example like this:</p>
  
  <pre><code>http://localhost:9990/health
  HTTP=OK
  
  {
    "status":"UP",
    "checks":[
      {"name":"imixs-workflow",
       "status":"UP",
       "data":
       {
       "engine.version":"5.1.11-SNAPSHOT",
       "model.groups":30,
       "model.versions":20
       }
      }
    ]
  }
  </code></pre>
  
  <p>The service is healthy if the check named 'imixs-workflow' shows the 'status' 'UP'.</p>
  
  <p>I already tried to configure this with a livenessprobe like this:</p>
  
  <pre><code>livenessProbe:
    exec:
      command: ["sh", "-c", "curl -s http://localhost:9990/health| grep -q imixs-workflow"]
    initialDelaySeconds: 60
  </code></pre>
  
  <p>But this did not work. </p>
  
  <p>How should I configure such a livenessprobe getting the status of a specific json field in a http result?</p>