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 /services
API.
ant31 source
share