content/en/docs/reference/config/analysis/ist0143/index.md
This message occurs when a workload is listening on a localhost network interface, but the port is exposed in the Service.
When this occurs, the port will not be accessible to other pods.
This check is primarily added to detect workloads on older Istio versions that may break when upgrading to Istio 1.10 or later. This behavior matches what would occur in a standard Kubernetes cluster without Istio, but older versions of Istio exposed these ports.
{{< warning >}}
Because this check relies on privileged runtime checks, it is not included in the standard istioctl analyze.
Instead, it is included during installation and upgrade checks from istioctl experimental precheck.
{{< /warning >}}
Consider a Service, selecting a Pod running the command nc localhost 8080 -l:
{{< text yaml >}} apiVersion: v1 kind: Service metadata: name: netcat spec: ports:
Because the application is serving traffic on localhost, it is not accessible from other pods.
The above example shows using the simple nc tool. Some equivalent examples in other languages:
net.Listen("tcp", "localhost:8080")http.createServer().listen(8080, "localhost");socket.socket().bind(("localhost", 8083))If you did not intend to expose the application to other pods, you can remove the port from the Service.
If you do want to expose the application to other pods, there are two options:
0.0.0.0 or ::, such as nc 0.0.0.0 8080 -l.Sidecar configuration to customize the inbound networking configuration for the pod.
For example, with the above application:{{< text yaml >}} apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: ratings spec: workloadSelector: labels: app: netcat ingress: