DC/OS 2.2 Production installation on Linux:
Make certain to refer Before Installation
01. Download DCOS V2.2 installation file -dcos_generate_config.sh from
https://docs.d2iq.com/mesosphere/dcos/2.0/release-notes/2.0.2/ for Open source
02. Save it locally on laptop or desktop.
03. Move it to Bootstrap node /dcos/dcos_software
04. Make directory /dcos/dcos_software/genconf
05. Create file /dcos/dcos_software/genconf/config.yaml
bootstrap_url: http://<BootStrapNode_IP>:80
cluster_name: 'dcoscluster'
exhibitor_storage_backend: static
master_discovery: static
master_list:
- <IP_Address_Master>
resolvers:
- 10.86.1.1
- 10.86.2.1
- 10.1.1.1
security: disabled
oauth_enabled: 'false'
use_proxy: 'false'
06. Execute #ifconfig and find out ens32 attached with ip address of the host
07. Create genconf directory on bootstrap node.
08. Create genconf/ip-detect script
09. Create file /dcos/dcos_software/genconf/ip-detect and include following. Make sure to get actual ip address when you execute file
#!/usr/bin/bash
set -o nounset -o errexit
export PATH=/usr/sbin:/usr/bin:$PATH
echo $(ip addr show ens32 | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
10. Execute /dcos/dcos_software/dcos_generate_config.sh
# ./dcos_generate_config.sh
Extracting image from this script and loading into docker daemon, this step can take a few minutes
dcos-genconf.236d4cef2fdf0fe613-50baa2ec85af8be41c.tar
Loaded image: mesosphere/dcos-genconf:236d4cef2fdf0fe613-50baa2ec85af8be41c
====> EXECUTING CONFIGURATION GENERATION
Generating configuration files...
Options for dcos_generate_config.sh:
./dcos_generate_config.sh --help
usage: dcos_generate_config.sh [-h] [--hash-password [password]]
[--generate-node-upgrade-script [installed_cluster_version]]
[-v] [--version] [--web] [--genconf]
[--aws-cloudformation]
DC/OS Install and Configuration Utility
optional arguments:
-h, --help show this help message and exit
--hash-password [password]
Hash a password and print the results to copy into a config.yaml.
--generate-node-upgrade-script [installed_cluster_version]
Generate a script that upgrades DC/OS nodes running
installed_cluster_version
-v, --verbose Verbose log output (DEBUG).
--version Print the DC/OS version
--web Run the web interface
--genconf Create DC/OS install files customized according to genconf/config.yaml.
--aws-cloudformation Generate AWS Advanced AWS CloudFormation templates
using the provided config
11. dcos_generate_config.sh script extracts a Docker container that uses the generic DC/OS install files to create customized DC/OS build files for your cluster. The build files are output to ./genconf/serve/
Directory structure should looks like as follows
12. Enable overlay for Docker in /etc/modules-load.d/overlay.conf
Following command will create file - overlay.conf at /etc/modules-load/ and add line overlay in it
# tee /etc/modules-load.d/overlay.conf <<-'EOF'
overlay
EOF
13. Run nginx docker container
# docker run -d -p 80:80 -v ${PWD}/genconf/serve:/usr/share/nginx/html:ro nginx
14.On dcos each master execute following to get dcos_install.sh file
curl -O http://<BootstrapNode_IP>:<Port_NoOfConfigFile>/dcos_install.sh15.On dcos agent execute following to get dcos_install.sh file
curl -O http://<BootstrapNode_IP:<Port_NoOfConfigFile>/dcos_install.sh
16. Execute ./dcos_install.sh master on DCOS master.
17. Execute ./dcos_install.sh master on DCOS slave_public to install DCOS public slave
DCOS has Bootstrap node, master node, public slave node, private slave node
18. Launch DC/OS web interface at http://<master_node_IP>. If this does not work
visit - https://dcos.io/ and refer troubleshooting section .
19. To unistall DC/OS download dcos_uninstall.sh script and execute on host from where you want uninstall DC/OS
Explore System Requirement -
https://docs.d2iq.com/mesosphere/dcos/1.11/installing/production/system-requirements/#port-and-protocol
Ref.:
https://docs.d2iq.com/mesosphere/dcos/1.11/installing/production/deploying-dcos/installation/
Make certain to refer Before Installation
01. Download DCOS V2.2 installation file -dcos_generate_config.sh from
https://docs.d2iq.com/mesosphere/dcos/2.0/release-notes/2.0.2/ for Open source
02. Save it locally on laptop or desktop.
03. Move it to Bootstrap node /dcos/dcos_software
04. Make directory /dcos/dcos_software/genconf
05. Create file /dcos/dcos_software/genconf/config.yaml
bootstrap_url: http://<BootStrapNode_IP>:80
cluster_name: 'dcoscluster'
exhibitor_storage_backend: static
master_discovery: static
master_list:
- <IP_Address_Master>
resolvers:
- 10.86.1.1
- 10.86.2.1
- 10.1.1.1
security: disabled
oauth_enabled: 'false'
use_proxy: 'false'
06. Execute #ifconfig and find out ens32 attached with ip address of the host
07. Create genconf directory on bootstrap node.
08. Create genconf/ip-detect script
09. Create file /dcos/dcos_software/genconf/ip-detect and include following. Make sure to get actual ip address when you execute file
#!/usr/bin/bash
set -o nounset -o errexit
export PATH=/usr/sbin:/usr/bin:$PATH
echo $(ip addr show ens32 | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
10. Execute /dcos/dcos_software/dcos_generate_config.sh
# ./dcos_generate_config.sh
Extracting image from this script and loading into docker daemon, this step can take a few minutes
dcos-genconf.236d4cef2fdf0fe613-50baa2ec85af8be41c.tar
Loaded image: mesosphere/dcos-genconf:236d4cef2fdf0fe613-50baa2ec85af8be41c
====> EXECUTING CONFIGURATION GENERATION
Generating configuration files...
Options for dcos_generate_config.sh:
./dcos_generate_config.sh --help
usage: dcos_generate_config.sh [-h] [--hash-password [password]]
[--generate-node-upgrade-script [installed_cluster_version]]
[-v] [--version] [--web] [--genconf]
[--aws-cloudformation]
DC/OS Install and Configuration Utility
optional arguments:
-h, --help show this help message and exit
--hash-password [password]
Hash a password and print the results to copy into a config.yaml.
--generate-node-upgrade-script [installed_cluster_version]
Generate a script that upgrades DC/OS nodes running
installed_cluster_version
-v, --verbose Verbose log output (DEBUG).
--version Print the DC/OS version
--web Run the web interface
--genconf Create DC/OS install files customized according to genconf/config.yaml.
--aws-cloudformation Generate AWS Advanced AWS CloudFormation templates
using the provided config
11. dcos_generate_config.sh script extracts a Docker container that uses the generic DC/OS install files to create customized DC/OS build files for your cluster. The build files are output to ./genconf/serve/
Directory structure should looks like as follows
12. Enable overlay for Docker in /etc/modules-load.d/overlay.conf
Following command will create file - overlay.conf at /etc/modules-load/ and add line overlay in it
# tee /etc/modules-load.d/overlay.conf <<-'EOF'
overlay
EOF
13. Run nginx docker container
# docker run -d -p 80:80 -v ${PWD}/genconf/serve:/usr/share/nginx/html:ro nginx
14.On dcos each master execute following to get dcos_install.sh file
curl -O http://<BootstrapNode_IP>:<Port_NoOfConfigFile>/dcos_install.sh15.On dcos agent execute following to get dcos_install.sh file
curl -O http://<BootstrapNode_IP:<Port_NoOfConfigFile>/dcos_install.sh
16. Execute ./dcos_install.sh master on DCOS master.
17. Execute ./dcos_install.sh master on DCOS slave_public to install DCOS public slave
DCOS has Bootstrap node, master node, public slave node, private slave node
18. Launch DC/OS web interface at http://<master_node_IP>. If this does not work
visit - https://dcos.io/ and refer troubleshooting section .
19. To unistall DC/OS download dcos_uninstall.sh script and execute on host from where you want uninstall DC/OS
Explore System Requirement -
https://docs.d2iq.com/mesosphere/dcos/1.11/installing/production/system-requirements/#port-and-protocol
Ref.:
https://docs.d2iq.com/mesosphere/dcos/1.11/installing/production/deploying-dcos/installation/
Comments
Post a Comment