Dimitri Kopriwa
Dimitri Kopriwa

Reputation: 14445

How to bind Mesos services to 127.0.0.1?

I want mesos to start my services on a different interface.

Right now, it can only bind to 0.0.0.0, and my host is accessible to the outside.

I have tried to play with LIBPROCESS_IP as recommended in the doc, but I couldn't make it work.

Edit :

Mesos is already starting it's own services on a private interface, I am writing about the services I want start on marathon, they all get binded to 0.0.0.0

Upvotes: 0

Views: 384

Answers (1)

haosdent
haosdent

Reputation: 1055

You could start mesos with --ip to bind it to 127.0.0.1. For example, bind mesos-master to 127.0.0.1:

mesos-master.sh --ip=127.0.0.1 --work_dir=/tmp/mesos

Or bind mesos-slave to 127.0.0.1:

mesos-slave.sh --ip=127.0.0.1 --master=127.0.0.1:5050 --work_dir=/tmp/emsos

Upvotes: 3

Related Questions