So I have setup my application on Google cloud using Kubernetes. I have a Pod which I want to expose out of the cluster that expects TCP requests.
I came to know that this is possible via ingress-nginx and researched about it. As mentioned in the docs here, it can be done by setting up a configMap like below:
apiVersion: v1
kind: ConfigMap
metadata:
name: tcp-configmap-example
data:
9000: "default/my-service-name:7051
, but it's full usage is not clearly described nor I could find a complete example in the docs properly.
I have installed ingress-nginx as mentioned in the Installation Guide but I am unsure what the next steps are to expose my Pod.
Extra Info
- The port in the Pod that I want to expose out of cluster is
7051 - I have a NodePort Service that targets my Pod's port that can be used with Ingress to expose.