Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDP Service dosent seem to work when multiports are defined. #9215

Closed
kakarotbyte opened this issue Oct 25, 2022 · 5 comments
Closed

UDP Service dosent seem to work when multiports are defined. #9215

kakarotbyte opened this issue Oct 25, 2022 · 5 comments
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@kakarotbyte
Copy link

I have been following the Doc and noticed that when I create a UDP service with multiple ports it dosent seem to work....

example:

kubectl get cm udp-services tcp-services -o yaml

apiVersion: v1
kind: ConfigMap
metadata:
  name: udp-services
  namespace: ingress-nginx
data:
  "5555": ingress-nginx/udp-echo-server:33333
  "6666": ingress-nginx/udp-echo-server2:11111

My ingress args

containers:
- args:
  - /nginx-ingress-controller
  - --publish-service=$(POD_NAMESPACE)/ingress-nginx-controller
  - --election-id=ingress-controller-leader
  - --controller-class=k8s.io/ingress-nginx
  - --ingress-class=nginx
  - --configmap=$(POD_NAMESPACE)/ingress-nginx-controller
  - --validating-webhook=:8443
  - --validating-webhook-certificate=/usr/local/certificates/cert
  - --validating-webhook-key=/usr/local/certificates/key
  - --tcp-services-configmap=ingress-nginx/tcp-services
  - --udp-services-configmap=ingress-nginx/udp-services

Ports running within the ingress container:

nsenter -t 11056 -n netstat -plntu

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:8181            0.0.0.0:*               LISTEN      11286/nginx: master
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      11286/nginx: master
tcp        0      0 127.0.0.1:10245         0.0.0.0:*               LISTEN      11218/nginx-ingress
tcp        0      0 127.0.0.1:10246         0.0.0.0:*               LISTEN      11286/nginx: master
tcp        0      0 127.0.0.1:10247         0.0.0.0:*               LISTEN      11286/nginx: master
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      11286/nginx: master
tcp6       0      0 :::8443                 :::*                    LISTEN      11218/nginx-ingress
tcp6       0      0 :::10254                :::*                    LISTEN      11218/nginx-ingress
udp        0      0 0.0.0.0:5555            0.0.0.0:*                           11286/nginx: master

Ask:

  • When I tested the same with TCP i was able to see multiple ports open.... but for udp it don't work. How can we make it work?
@kakarotbyte kakarotbyte added the kind/bug Categorizes issue or PR as related to a bug. label Oct 25, 2022
@k8s-ci-robot
Copy link
Contributor

@kakarotbyte: This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority labels Oct 25, 2022
@kakarotbyte
Copy link
Author

Update:

When I add a service from a different namespace it seems to work. I am assuming if we try to put multiple services from same namespace it wont work.

@longwuyuan
Copy link
Contributor

/remove-kind bug

Need to check but I think the name pairs with one port

@k8s-ci-robot k8s-ci-robot added needs-kind Indicates a PR lacks a `kind/foo` label and requires one. and removed kind/bug Categorizes issue or PR as related to a bug. labels Oct 27, 2022
@longwuyuan
Copy link
Contributor

The TCP/UDP feature is being deprecated #11666 .

So closing this issue as it will not be worked upon.

/close

@k8s-ci-robot
Copy link
Contributor

@longwuyuan: Closing this issue.

In response to this:

The TCP/UDP feature is being deprecated #11666 .

So closing this issue as it will not be worked upon.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants