Service > ExternalIps

N.B: not a real type, just a special clusterIP service

apiVersion: v1
kind: Service
metadata:
  name: myservice
spec:
  selector:
    app: myapp
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: 8080
  externalIPs:
    # ex: IP of your legacy app running on traditional VM or bare metal
    - 10.0.0.127

official documentation