DeploymentAssociatedToMultipleServices

Message NameDeploymentAssociatedToMultipleServices
Message CodeIST0116
DescriptionThe resulting pods of a service mesh deployment can’t be associated with multiple services using the same port but different protocols.
LevelWarning

This message occurs when pods of a deployment are associated with multiple services using the same port but different protocols.

An example

Consider an Istio mesh with the following services:

  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: productpage-tcp-v1
  5. spec:
  6. ports:
  7. - port: 9080
  8. name: tcp
  9. protocol: TCP
  10. selector:
  11. app: productpage
  12. ---
  13. apiVersion: v1
  14. kind: Service
  15. metadata:
  16. name: productpage-http-v1
  17. spec:
  18. ports:
  19. - port: 9080
  20. name: http
  21. protocol: HTTP
  22. selector:
  23. app: productpage

This example shows both HTTP and TCP protocols associated with port 9080.

No two services should select the same pod port with different protocols.