Does ServiceEntries port names needs to follow <protocol>[-<suffix>]?

#1

Hey there,

I am having a doubt. Does ServiceEntries port names needs to follow < protocol >[-< suffix>]?

apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: external-svc-wikipedia
spec:
  hosts:
  - wikipedia.org
  location: MESH_EXTERNAL
  ports:
  - number: 80
    name: http-example
    protocol: HTTP
  resolution: DNS

Can it just only be the name without the protocol as a suffix?

 - number: 80
    name: example-http
    protocol: HTTP

I see that you require this for services and pods in k8s, but I am not sure what is the protocol to follow for ServiceEntries.

In the documentation I have seen different patterns.

Thank you so much.

#2

nopeā€¦ because the protocol field in service entry has more options than k8s