To configure agents, follow these steps:
- In the slaves tab, type the following commands:
$ cd /etc/mesos-slave $ sudo mkdir conf
- Repeat this for all the agents.
- In the conf directory, create a credential.json file for all agents:
$ cd conf $ sudo touch credential.json $ sudo vi credential.json
- Add the following code in the credential.json file:
{ "principal": "agent", "secret": "agents_secret" }
- Save and exit using :wq!
This is the secret that the agents will use to get authenticated by the master. We added similar secrets for the master previously. The master will now know what secrets to use to get authenticated.
Repeat the preceding steps for all the agents.
The following steps will notify the master about the location of the credential file:
- These steps are similar to what we followed...