kubetnetes port forward udp

6/9/2017

My service exposes UDP port 6831, and other ports. Here is the service description:

    kubectl describe service jaeger-all-in-one                                                                                                                    1:51 
Name:           jaeger-all-in-one
Namespace:      myproject
Labels:         jaeger-infra=all-in-one
Annotations:        <none>
Selector:       name=jaeger-all-in-one
Type:           ClusterIP
IP:         172.30.213.142
Port:           query-http  80/TCP
Endpoints:      172.17.0.3:16686
Port:           agent-zipkin-thrift 5775/UDP
Endpoints:      172.17.0.3:5775
Port:           agent-compact   6831/UDP
Endpoints:      172.17.0.3:6831
Port:           agent-binary    6832/UDP
Endpoints:      172.17.0.3:6832
Session Affinity:   None
Events:         <none>

Forward port:

kubectl port-forward jaeger-all-in-one-1-cc8wd  12388:6831

However it forwards only TCP ports, I would like to send data to the UDP port.

-- Pavol Loffay
kubectl
kubernetes

0 Answers