I've got some mesos-slave nodes that I would like to expose to the internet. As such, I would like mesos-slave to offer port 80 and 443 in addition to its default slew of ports/resources.
From what I have gathered, I need to adjust the --resources
parameter and include both 80 and 443 in the port resource offerings. However, from my tests, in doing this, I must also hard-code the machine's CPU/Mem/Disk offerings as well (as opposed to allowing mesos-slave to determine these at runtime).
Because the size of nodes I want to run mesos-slave
on may change in the future, I want to avoid hardcoding the CPU/Mem/Disk offerings and let them be determined at runtime. How do I change mesos-slave's port --resource
offerings without hardcoding the CPU/Mem/Disk offerings? Ideally such a system would be additive: "offer port 80/443 in addition to the default ports".
Best!
Advait