Is Istio Protocol Selection by port name case sensitive?

For example, will protocol selection work if the port name is either https-web or HTTP-web? Here are two ServiceEntries for example:

apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: external-svc-https
spec:
  hosts:
  - api.dropboxapi.com
  - www.googleapis.com
  - api.facebook.com
  location: MESH_EXTERNAL
  ports:
  - number: 443
    name: https-web
    protocol: TLS
  resolution: DNS
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: external-svc-https
spec:
  hosts:
  - api.dropboxapi.com
  - www.googleapis.com
  - api.facebook.com
  location: MESH_EXTERNAL
  ports:
  - number: 443
    name: HTTPS-web
    protocol: TLS
  resolution: DNS

I believe that name based protocol selection is only done on vanilla K8s Service resources, not Istio ServiceEntry resources. For Istio CRD’s like ServiceEntry Istio uses the protocol field directly rather than inferring from the name.

1 Like

That’s good to know, but do you know if it is case sensitive on Service resources?

Wasn’t sure so I took a look and can confirm it is not case sensitive.

1 Like