0

Is it possible to attain public ip with MicroK8S? Upon enabling the ingress addon the ip is 127.0.0.1. enter image description here

Yanir
  • 95
  • 9

1 Answers1

2

It depends on what you are trying to do. Your microk8s does not magically obtain a public ip like cloudproviders do. There is no external loadbalancer available.

If you just want to have access to services hosted on that k8s environment, take a look at the ingress plugin or the host-access plugin depending on your exact use-case.

You have to keep in mind that public cloud providers have integrations with lots of other services, like load balancers. Usually self hosted kubernetes does not have all that integrations. But you also can use NodePort services, or host network pods to get access to them on specific ports.

But the best way if you want ingress functionality, you probably want to enable the ingress plugin and change some of the configuration.

Leroy
  • 1,600
  • 13
  • 23