Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to configure nginx-ingress and Digital ocean Load balancer to accept TCP traffic and route to pod
I have a digital ocean kubernetes and an ingress controller routing traffic. but one of the pods needs to accept TCP traffic; so i would like to make the ingress to accept the TCP traffic and route to the pod. i followed this
after following, i still cannot connect to the port.
Below is what i have:
kind: Service apiVersion: v1 metadata: name: ingress-nginx namespace: ingress-nginx labels: app.kubernetes.io/name: ingress-nginx app.kubernetes.io/part-of: ingress-nginx spec: selector: # app: speed-transmission-app app.kubernetes.io/name: ingress-nginx app.kubernetes.io/part-of: ingress-nginx type: LoadBalancer ports: - name: http port: 80 targetPort: 80 protocol: TCP - name: https port: 443 targetPort: 443 protocol: TCP - name: transmission-port port: 9000 targetPort: 8998 protocol: TCP
apiVersion: v1 kind: ConfigMap metadata: name: tcp-services namespace: ingress-nginx data: 9000: "staging/speed-transmission-service:9000"
Now when i try to connect to the load balancer external IP at port 9000, i get connection lost.
I will really appreciate help on how to configure this. thanks.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×