Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"connection refused" error in main application until istio-sidecar starts

I have problem with start order of istio-sidecar and main application in kubernetes. When pod starts, main application getting error "connection refused" for external services. When istio-envoy proxy ready, main application starts correctly on next attempt.

While Istio is not ready, the main application has time to crash and restart 2-3 times

how do I make the main application wait for istio-sidecar to start and only then start running itself?

like image 739
vladimir vyatkin Avatar asked Oct 27 '25 19:10

vladimir vyatkin


1 Answers

I believe if you set holdApplicationUntilProxyStarts to true will solve your issue. You can get more information about it here: https://istio.io/latest/docs/ops/common-problems/injection/ Hope it can help you.

like image 161
Debby Avatar answered Oct 29 '25 18:10

Debby



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!