Hello
Im trying to setup a service running UDP and in order to get healt status from it in my loadbalancer i need a tcp connection as well. The Pod runs on 2 ports 30300 UDP and 9090 TCP for healthcheck. I then try to run a NodePort for the UDP and TCP on port 30300 for keeping it simple see below:
spec:
ports:
- name: udp
nodePort: 30300
port: 30300
protocol: UDP
targetPort: udp
- name: http
nodePort: 30300
port: 30300
protocol: TCP
targetPort: http
type: NodePort
They both seem to work as services shows both ports. So i have deleted and installet correctly and are not experiencing the bug with TCP UDP addition.
Expectation:
Traffic from external loadbalancer towards http port for healthcheck should reach it on port 30300 over TCP
Reality: Gets a connection refused when reaching kubernets.
Is this setup possible?