Kubernetes external ip loadbalancer bare metal

Is there a way to set up an automatic external ip distribution for a service like google in loadbalancer? I run the bare metal kubernets.

thanks

+6
source share
3 answers

Use services with nodePort type, it will bind your service to a fixed port on all your nodes ( http://kubernetes.io/v1.0/docs/user-guide/services.html#type-nodeport )

Then you need to use a loadbalancer (e.g. haproxy) to forward calls to this service.

The loadbalancer configuration can be done using a script that uses the kubernetes /servicesAPI.

+2
source

nodePort, Kubernetes .

. , , ( bash python) , API Kubernetes .

0

Source: https://habr.com/ru/post/1610231/


All Articles