In the previous section, we successfully set up Mesos and Marathon. In this section, we will see how to deploy the BrownField PSS application previously developed using Mesos and Marathon.
The full source code of this chapter is available under the chapter10 projects in the code files under https://github.com/rajeshrv/Spring5Microservice. Copy chapter9.* into a new STS workspace and rename it chapter10.*.
In this example, we will force the Mesos cluster to bind to fixed ports, but, in an ideal world, we will delegate the Mesos cluster to dynamically bind services to ports. Also, since we are not using a DNS or HA Proxy, we will hardcode the IP addresses. In the real world, a VIP for each service will be defined, and that VIP will be used by the services. This VIP will be resolved by the DNS and Proxy.
Perform the following steps to...