Uninett / lbcontroller

Kubernetes Loadbalancer service type controller to setup LB in Uninett Loadbalancers
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Decide if we should manage both TCP and UDP for a single service #6

Open folago opened 6 years ago

folago commented 6 years ago

Apparently services of type loadBalancer can only have one protocol.

The Service "service-test" is invalid: spec.ports: Invalid value: []core.ServicePort{core.ServicePort{Name:"http", Protocol:"TCP", Port:80, TargetPort:intstr.IntOrString{Type:0, IntVal:80, StrVal:""}, NodePort:0}, core.ServicePort{Name:"unreal", Protocol:"UDP", Port:80, TargetPort:intstr.IntOrString{Type:0, IntVal:80, StrVal:""}, NodePort:0}}: cannot create an external load balancer with mix protocols

gurvindersingh commented 6 years ago

we need to support both protocols. But given the k8s service spec and our LB spec, they don't see eye to eye. So we need to create two different service in case a single k8s service expose ports on various protocols. This is the reason for our clustername-namespace-svc-protocol naming convention.