Open emrahcetiner opened 4 years ago
@emrahcetiner I'm not sure this is a stolon bug. We're just patching the pod annotations and it works with a standard pod so something strange happens when istio inject another container in the pod. You should try to dig inside this issue and report here if you find something useful.
hi @sgotti could you tell pls which configuration you checked and it worked for you. if not, tell me plz how can this be diagnosed? the fact is that on configuration with postgres helm chart (without stolon) all work as expected and the problem only occurs in conjunction with stolon thanks in advance!
@elkh510 I said that stolon updates pods metadata and without istio everything works correctly. So it's istio that affects something. Probably it has some sort of admission webhooks that are doing something strange. You should investigate what part of istio affects this and report it.
I think this issue on https://github.com/istio/istio/issues/17646 "HTTP PATCH call failing when istio is active on pod" might be related
"Seems we have overcome the issue
Instead of a PATCH call, we now use a POST call with this URL parameter: "_HttpMethod", "PATCH"
We will do some more tests, but it seems the issue is resolved."
I am not sure how we would be able to fix it with stolon.
problem resolves by adding this parameter --pg-advertise-port string postgresql instance port from outside. Use it to expose port different than local port with a PAT networking config https://github.com/sorintlab/stolon/blob/master/doc/commands/stolon-keeper.md
What happened: if istio sidecar injection enabled, patch command for pod annotation couse error:
What you expected to happen: information of proxy, keeper and sentinel patch to pod's annotation.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?: i have istio-sidecar. istio inject their sidecar automaticaly in same pod with stolon-proxy/keeper/sentinel.
Environment: