Readiness probe failed: HTTP probe failed with statuscode: 503 in ISTIO

pappu_kutty picture pappu_kutty · May 6, 2019 · Viewed 13k times · Source

I have deployed istio service mesh in my AKS cluster. i have ui and backend services both configured in istio for service communication. i am able to invoke backend service through istio, and no problem in accessing my backend services.

But i am facing issue in test-ui pod, when i see pod status

NAME                                  READY   STATUS    RESTARTS   AGE
Test-api-deployment-59f6c6f67-ml4xm   2/2     Running   0          3d21h
Test-ui-deployment-b54fd89b-2ndsv     1/2     Running   0          52m

In above status, my ui pod , one of my istio container is not in ready state to serve my request.. when i looked into the container state, i get below error..

Warning  Unhealthy  2m24s (x299 over 12m)  kubelet, aks-wmsdevk8s-25812762-4  
Readiness probe failed: HTTP probe failed with statuscode: 503

i see it an open issue issue in github.. is there any workaround for this...

EDIT

my istio version

version.BuildInfo{Version:"1.1.5", GitRevision:"9b6d31b74d1c0cc9358cc82d395b53f71393326b", User:"root", Host:"3e29fde4-6c3f-11e9-b00d-0a580a2c0205", GolangVersion:"go1.10.4", DockerHub:"docker.io/istio", BuildStatus:"Clean", GitTag:"1.1.4-10-g9b6d31b"}

istio proxy version -   Image:         docker.io/istio/proxyv2:1.1.2

Answer

4c74356b41 picture 4c74356b41 · May 6, 2019

It should work with istio 1.1.5. I suppose you didnt configure istio to rewrite HTTPProbes. You need to install Istio with the sidecarInjectorWebhook.rewriteAppHTTPProbe=true (source).

You can check your istio-sidecar-injector configmap, it should have rewriteAppHTTPProbe: true

ps. it works for me with istio 1.1.2, i believe