Let’s say:
apiVersion: v1
kind: ConfigMap
metadata:
name: tcp-services
namespace: ingress-nginx-private
data:
3389: “demo/rdp:3389”`
will expose a “rdp” service. If we have 10 services which need to be exposed the same way than how can we achieve that?
2
Answers
You will need to edit this configmap with your new port dynamically.
You could also use Traefik V2, they democratized the TCP/UDP Service through a CRD.
But both case, you need to edit a manifest on the kube.
As mentioned by nginx ingress docs here: user-guide/exposing-tcp-udp-services
You need to edit configmap:
And nginx ingress service:
And you can add as many ports as you’d like. Just remeber that one port can only be used once.