cannot create an external load balancer with mix protocols

998 views
Skip to first unread message

Aditya Patawari

unread,
Apr 5, 2016, 7:20:33 AM4/5/16
to gce-discussion
Hello,

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?
The relevant kubernetes replication controller is present at https://github.com/adimania/Restcomm-Docker/tree/master/kubernetes

Prashanth B

unread,
Apr 5, 2016, 3:15:36 PM4/5/16
to gce-discussion

On Tuesday, April 5, 2016 at 4:20:33 AM UTC-7, Aditya Patawari wrote:
Hello,

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?
The relevant kubernetes replication controller is present at https://github.com/adimania/Restcomm-Docker/tree/master/kubernetes


This is more like a feature request: https://github.com/kubernetes/kubernetes/issues/23880, it should be possible to support mixed protocols on a single static ip. I think it's just one of those things we never got to because not enough people asked for it. 
Reply all
Reply to author
Forward
0 new messages