1

So I got a running cluster on my server. The server is running ubuntu 18.06. I set up the cluster using kubeadm, kubectl and kubelet.

My goal in a nutshell: I want to reach the services with executing http://myserver.com/service.

I am kinda lost with exposing the services to port 8080. The current structure is like this:

31001:SERVICE:8080 -> 8080:POD

So I need to redirect the requests incoming using http://myserver.com/service to the kubernetes service with port 31001.

Current situation: I can only access the cluster via server IP:6443.

So my question: how can I make the cluster more or less public available on port 8080?

elp
  • 167
  • 1
  • 9

1 Answers1

2

In addition to the tutorial @getslaf provided, there are few ways to achieve your goal but the best practice would be to configure an Ingress controller.

Ingress can provide load balancing capabilities, SSL termination, and name-based virtual hosting.

I think the two most common choices would be Istio or Nginx but as far as I know, there are other choices.

Moshe
  • 135
  • 1
  • 7
Itai Ganot
  • 10,424
  • 27
  • 88
  • 143