Search code examples
kuberneteskubernetes-ingressmetallb

Expose service to the world from my bare metal k8s node


I am following this guide to expose a service running on my bare metal k8s cluster to the world.

The guide suggests using metallb for giving external access. The problem is, during the setup process of metallb, I am asked to give a range of available IP addresses.

The hosting provider I am using is very basic, and all I have is the IP address of the Linux instance that is running my K8s node. So my question is, how can I provision an IP address for assigning to my application? Is this possible with a single IP?

Alternatively I'd love get this done with a NodePort, but I need to support HTTPS traffic and I am not sure its possible if I go that way.


Solution

  • Specify a single IP using CIDR notation. your-ip/32 (192.168.10.0/32 for example)