is there a way to setup automatic external ip allocation to service like google do in loadbalancer ? I'm running kubernetes on bare metal.
Thank you
Use services with type nodePort, 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 have to use a loadbalancer (i.e haproxy) to forward calls to this service.
The loadbalancer configuration can be done by a script that use kubernetes /services
API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With