Skip to main content

Kubernetes Question of the Day 5


Geoff Burke
Forum|alt.badge.img+22

Day 5 on a Monday, just to keep everyone on their toes!

What type of Service will expose my Application outside of the cluster with minimal effort in an on premise cluster with no extra configuration?

6 comments

JMeixner
Forum|alt.badge.img+17
  • On the path to Greatness
  • 2650 comments
  • June 20, 2022

One option is for cluster internal exposition, one for cluster external exposition without further configuration, one other for external exposition with further configuration.

And the other three options… I don’t know anything about them, so I assume they are wrong… 🤣🤣🤣


Chris.Childerhose
Forum|alt.badge.img+21

Let’s see if I can keep on a roll.


vNote42
Forum|alt.badge.img+13
  • On the path to Greatness
  • 1246 comments
  • June 20, 2022

more and more difficult


Geoff Burke
Forum|alt.badge.img+22
  • Author
  • Veeam Legend, Veeam Vanguard
  • 1318 comments
  • June 21, 2022

Answer NodePort. 

Loadbalancer requires something outside the cluster to provide an external IP.

 

I NodePort will simply the IP on the Nodes and a high up port over 30000 which can be random or set. Therefore you don’t need to add any extra configurations to get it working. Keep in mind Nodeport should only be used for testing and not production.


Chris.Childerhose
Forum|alt.badge.img+21

Woohoo got this one too. On to the next. 😂


Iams3le
Forum|alt.badge.img+11
  • Veeam Legend
  • 1395 comments
  • June 21, 2022
Geoff Burke wrote:

Answer NodePort. 

Loadbalancer requires something outside the cluster to provide an external IP.

 

I NodePort will simply the IP on the Nodes and a high up port over 30000 which can be random or set. Therefore you don’t need to add any extra configurations to get it working. Keep in mind Nodeport should only be used for testing and not production.

Hello @Geoff Burke This means, in Production Load balancer should be used.