Service > ExternalName

apiVersion: v1
kind: Service
metadata:
  name: mydb
spec:
  type: ExternalName
  externalName: my.database.mycloudprovider.com

official documentation