Skip to Main Content

HOW TO: expose multiple nodeports in Kubernetes(OKE) via single public IP adress

User_LEOWYMay 5 2022 — edited May 5 2022

Hello,

Is there any solution, how to expose multiple nodeports inside Kubernetes cluster via single public IP address?

Example:
prometheus nodeport: 30001
elastic nodeport: 30002

And all these nodeports will be handle by single public IP address. Then If I need to configure output for some app that needs to reach elastic I will use IP xxx.xxx.xxx.xxx:30002
Same with output for prometheus. The IP will be same xxx.xxx.xxx.xxx only nodeport will be different.
I know I can create LB for each of these but then I will have different IPs.

Is there any way how to do that?

Many thanks in advance.

Martin

Comments
Post Details
Added on May 5 2022
2 comments
455 views