I have an eks cluster, all up and working. I want to run a service which listens to tcp request on port 5000. I'm trying to read about it but all guides I could find are using http for the examples. I think I'm a bit confused with all the different concepts. If I define:
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
type: LoadBalancer
ports:
- port: 5000
targetPort: 5000
protocol: TCP
and run this (actually using helm), I can see on aws-console that a classic load balancer is created. but i can't ping it.
So basically, how do I create a network load balancer that forwards port 5000 to my service? it seems like this should be simple by I can't find how to do this. Eventually I want to have a staticIP for the nlb so I can send requests to that port. Do I need to install nginx (or other ingress controller) to make this work?