I have pods in the mesh that I injected with the Istio sidecar. In most of the logs I’m seeing quite a few
TCP connection failed: (Connection refused). I was thinking this is due to AuthorizationPolicies. I tried applying an AuthorizationPolicy to my namespace, but still seeing the TCP Connection Failure in my pods logs.
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: policy
namespace: foo
spec:
{}
Is there a way to resolve this?
More info on this issue. Seems to be issue with service to service communication in the mesh. I have two pods (podA and podB) in the same k8s cluster that should communicate with one another. The service type for both pods is ClusterIP. Everything works fine before applying the envoy sidecar. Once I apply the envoy sidecar, when I check the logs from podA and see the following: