The Mesos/Marathon integration have to be configured by CDS administrator.
This integration allows you to run the Marathon Hatchery to start CDS Workers.
As an end-users, this integration allows to use Worker Models of type “Docker”
Generate a token:
$ cdsctl consumer new me \
--scopes=Hatchery,RunExecution,Service,WorkerModel \
--name="hatchery.marathon" \
--description="Consumer token for marathon hatchery" \
--groups="" \
--no-interactive
Builtin consumer successfully created, use the following token to sign in:
xxxxxxxx.xxxxxxx.4Bd9XJMIWrfe8Lwb-Au68TKUqflPorY2Fmcuw5vIoUs5gQyCLuxxxxxxxxxxxxxx
Edit the section hatchery.marathon
in the CDS Configuration file.
The token have to be set on the key hatchery.marathon.commonConfiguration.api.http.token
.
Then start hatchery:
engine start hatchery:marathon --config config.toml
This hatchery will spawn Application on Marathon. Each application is a CDS Worker, using the Worker Model of type ‘docker’.