DeploymentConflictingPorts
| Message Name | DeploymentConflictingPorts |
| Message Code | IST0137 |
| Description | Two services selecting the same workload with the same targetPort MUST refer to the same port. |
| Level | Warning |
This message occurs when two services select the same workload with the same targetPort but different ports.
An example
Consider an Istio mesh with the following services:
apiVersion: v1kind: Servicemetadata:name: nginx-aspec:ports:- port: 8080protocol: TCPtargetPort: 80selector:app: nginx---apiVersion: v1kind: Servicemetadata:name: nginx-bspec:ports:- port: 80protocol: TCPtargetPort: 80selector:app: nginx
In this example, service nginx-a and service nginx-b select the same workload nginx with the same targetPort but different ports.
How to resolve
This may be fixed in one of two ways:
- Make both services use the same
port. This will require reconfiguring the clients of one of the services to connect to a differentport. - Make both services use different
targetPorts. This will require configuring the workload pods of one of the services to listen on the sametargetPortas the other service.