ExternalName Services

An ExternalName service is a special case of Service that does not have selectors and uses DNS names instead (kubernetes.io).

You essentially make your service an alias to an external service.

ExternalName service descriptor

Mention type and externalName:

apiVersion: v1
kind: Service
metadata:
  name: external-service
spec:
  type: ExternalName
  externalName: someapi.somecompany.com
  ports:
    - port: 80

References