serving icon indicating copy to clipboard operation
serving copied to clipboard

Istio + Knative + Liveness failing

Open wiwwo opened this issue 1 year ago • 1 comments

Hi! Could you help me understanding what is the correct livenessProbe, when using istio + Knative?

Assuming that:

  • i annotated the service with sidecar.istio.io/rewriteAppHTTPProbers: "false"
  • i am exposing the pod port 8000 in my Dockerfile
  • i am using this
      livenessProbe:
        httpGet:
          path: /health/liveness
          port: 8080
    
    config since the exposed port is 8080, as expressed as well in desc pod:
    Containers:
      user-container:
    <...>
          Port:           8080/TCP
    
    and relative
     Liveness:       http-get http://:8080/health/liveness delay=5s timeout=1s period=5s #success=1 #failure=3
    
  • And my POD answers to that path, as in
    @myApp.route('/health/liveness', methods=['GET'])
    def meh():
     return "Healthy: OK"
    
  • And that I receive a
       Warning  Unhealthy  1s (x6 over 31s)   kubelet            Liveness probe failed: HTTP probe failed with statuscode: 503
    

What am I doing wrong? Thanks for help!!

wiwwo avatar Jan 11 '24 13:01 wiwwo

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Apr 11 '24 01:04 github-actions[bot]