I am working on a SIP app that uses TCP and UDP ports. I create a cluster in GKE and the use expose to open the ports to outside world. Once I do that, I notice that the even the UDP ports are coming up as TCP ports.
$ kubectl expose rc restcomm-core-controller --type=LoadBalancer
service "restcomm-core-controller" exposed
aditya@21:42:57:~/git-repos/restcomm/Restcomm-Docker/kubernetes$ kubectl get svc
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes 10.23.240.1 <none> 443/TCP 1h
restcomm-core-controller 10.23.251.4 104.199.142.192 80/TCP,443/TCP,9990/TCP,5060/TCP,5060/TCP,5061/TCP,5062/TCP,5063/TCP,65000/TCP,65001/TCP,65002/TCP,65003/TCP,65004/TCP 1m
I tried manually creating a service and using a yml file but it resulted in an error which says "cannot create an external load balancer with mix protocols". Is there any way I can create a load balancer with some tcp and some udp ports?