serving
serving copied to clipboard
Istio + Knative + Liveness failing
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
config since the exposed port is 8080, as expressed as well in desc pod:livenessProbe: httpGet: path: /health/liveness port: 8080
and relativeContainers: user-container: <...> Port: 8080/TCP
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!!
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
.