Skip to content

Configure bootstrap node

Amit Pandit edited this page Jan 21, 2019 · 9 revisions

Once you have completed with all the steps provided in initial steps . You can move on the next step to configure the boostrap node. Login to the boostrap node VM and follow the below steps.

Step 1 : Create a directory named genconf on your bootstrap node and navigate to it.

>> cd /tmp

>> mkdir -p genconf

>> cd genconf

Step 2 : Create two files under /genconf directory

>> touch ip-detect

>> touch config.yaml

Example directory structure is below

Step 2 : Configure ip-detect file

Put below content in the file

#!/usr/bin/env bash set -o nounset -o errexit export PATH=/usr/sbin:/usr/bin:$PATH echo $(ip addr show eth0 | grep -Eo '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}' | head -1)

Sample file is below

Note : Now the above content has a interface name as "eth0" . So this will change according to your virtual machine. You can find out using "ifconfig" command what you have to put here. Just only this interface name will change.

Validate the script.

>> chmod 755 ip-detect

>> ./ip-detect

This should give you the output as ip adress for respective interface.

Step 3 : Configure config.yaml file

Put the below content in the file

bootstrap_url: http://<bootstrap_ip>:80

cluster_name:

exhibitor_storage_backend: static

master_discovery: static

ip_detect_public_filename: genconf/ip-detect

master_list:

resolvers:

  • 8.8.8.8

Basically, your file should be like below

Where,

  • Replace your bootstrap node ip address with <bootstrap_ip>
  • Give any suitable cluster name to
  • Note the ip detect public file path.
  • Replace the with your master node ip address
  • You should have dns nameserver as 8.8.8.8 If it is different then please replace for same.

Step 4 : Download the installation script and run

>> cd /tmp

>> curl -O https://downloads.dcos.io/dcos/stable/dcos_generate_config.sh

>> sudo bash dcos_generate_config.sh

For the install script to work, you must have created genconf/config.yaml and genconf/ip-detect

>> sudo docker run -d -p <your-port>:80 -v $PWD/genconf/serve:/usr/share/nginx/html:ro nginx

Expected output of the installation.

If you come across any issues you can check the troubleshooting page.

Now , you are good to for configuring master node !

Clone this wiki locally