spec:
selector:
app: some-app
ports:
- protocol: UDP
port: 8080
targetPort: 8080
Explanation -
Adding type: LoadBalancer and nodePort as follows:
spec:
selector:
app: some-app
type: LoadBalancer
ports:
- protocol: UDP
port: 8080
targetPort: 8080
nodePort: 32412