I have a problem with connecting two services on Kubernetes with Istio. My service makes POST requests to the elasticsearch.
2020-11-18T21:51:53.758079131Z org.elasticsearch.client.ResponseException: method [POST], host [http://elasticsearch:9200], URI [/_bulk?timeout=1m], status line [HTTP/1.1 503 Service Unavailable]
2020-11-18T21:51:53.758087238Z upstream connect error or disconnect/reset before headers. reset reason: connection failure
I read some questions/GitHub issues about that and one of the possible reasons could be mtls, so how can I disable it?
I was trying with this:
apiVersion: "security.istio.io/v1beta1"
kind: "PeerAuthentication"
metadata:
name: "default"
namespace: "istio-system"
spec:
mtls:
mode: DISABLE
But with this PeerAuthentication, I'm not able to reach even my service.
Do you have any advice?