Dwarves
Memo
Type ESC to close search bar

Dcos Series Part 1 Quick Look Installation

What is DC/OS ?

DC/OS - Data center OS is based on the production proven Apache Mesos distributed systems kernel, combining years of real-life experience with best practices for building and running modern applications in production.

A DC/OS cluster is composed of three types of nodes: masters, private agents, and public agents.

There are some nodes that we will talk about:

Why DC/OS ?

Build modern apps using state of the art technologies such as containers and big data services, and confidently move from development to production.

How can we install it ?

System requirement -> Here

Installing

OK. Let’s go to the most excited section - Installing DC/OS!

Currently, DC/OS supported to run with specific installation guideline for each Provider:

In this article, I will show you the way to install DC/OS generally. So that you can apply it for every clouds that you’re using.

Step 1 - Prepare on bootstrap node

mkdir -p gencof
---
bootstrap_url: http://<bootstrap_ip>:<your_port>
cluster_name: '<cluster-name>'
exhibitor_storage_backend: static
ip_detect_filename: /genconf/ip-detect
master_discovery: static
master_list:
- <master-private-ip-1>
- <master-private-ip-2>
- <master-private-ip-3>
resolvers:
- 8.8.4.4
- 8.8.8.8
cluster_docker_credentials:
 auths:
  'https://hub.registry1.com':
   auth: ZHdhpLtMG7wi7DsydLkd2FVz
   email: quang@dwarvesf.com
  'https://index.docker.io/v1/':
   auth: HdhpLtMG7wi7DsydLkd2FVzZHdhpLtMG7wi7DsydFVz==
   email: hi@dwarvesf.com
cluster_docker_credentials_dcos_owned: true
cluster_docker_credentials_enabled: 'true'
enable_docker_gc: 'true'
#!/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)
curl -O https://downloads.dcos.io/dcos/stable/dcos_generate_config.sh
sudo bash dcos_generate_config.sh

Step 2 - Install DC/OS to master nodes

ssh <master-ip>
mkdir /tmp/dcos && cd /tmp/dcos
curl -O http://<bootstrap-ip>:<your_port>/dcos_install.sh
sudo bash dcos_install.sh master

Step 3 - Install DC/OS to master nodes

ssh <node-ip>
mkdir /tmp/dcos && cd /tmp/dcos
curl -O http://<bootstrap-ip>:<your_port>/dcos_install.sh

Step 4 - Launch the DC/OS

You can access to web interface at http://<master-node-public-ip>/and bingo !