Can I save ip:port in LoadBalancerIngress.IP?

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.16.8
Cloud being used: bare-metal
Installation method: ansible
Host OS: centos7
CNI and version: calico 3.15
CRI and version: docker 18.09

I create a new LoadBalancer with my own Loadbalancer server, which needs both ip and ports. So I wonder if I can save the port in 「external-ip」. is it illegal or not ?

for example:

default test-backend LoadBalancer 8080:31235/TCP 2d23h

the external-ip contains not only ips but also port,

Unfortunately not. The LB contract is that it uses the port numbers defined in the service.