Creating a single master cluster with IBM Cloud Private
Requirement from IBM:
Requirement
|
|
Number of hosts
|
1
|
Cores
|
8 or more
|
CPU
|
>=2.4 GHz
|
RAM
|
32 GB or more
|
Free disk space to
install
|
>=200 GB
|
OS
|
Ubuntu 16.04
|
Update System:
[ahmed@icp:~]$ sudo apt-get update
Install Python:
[ahmed@icp:~]$ sudo apt-get install python-minimal -y
Python version:
[ahmed@icp:~]$ python --version
'2.7.12'
Modified attributes of the system kernel:
[ahmed@icp:~]$ sysctl -w vm.max_map_count=262144
[ahmed@icp:~]$ echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf
[ahmed@icp:~]$ sudo sysctl net.ipv4.ip_local_port_range
'net.ipv4.ip_local_port_range = 32768 65535'
[ahmed@icp:~]$ sysctl -w net.ipv4.ip_local_port_range="10240 60999"
[ahmed@icp:~]$ echo 'net.ipv4.ip_local_port_range="10240 60999"' | sudo tee -a /etc/sysctl.conf
Install Packages:
[ahmed@icp:~]$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
[ahmed@icp:~]$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
[ahmed@icp:~]$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
[ahmed@icp:~]$ sudo apt-get update
Install docker ce:
[ahmed@icp:~]$ sudo apt-get install docker-ce
[ahmed@icp:~]$ sudo systmemctl enable docker
Pull images of ICP:
[ahmed@icp:~]$ sudo docker pull ibmcom/icp-inception:2.1.0.2
[ahmed@icp:~]$ sudo mkdir /opt/ibm-cloud-private-ce-2.1.0.2
[ahmed@icp:~]$ cd /opt/ibm-cloud-private-ce-2.1.0.2
[ahmed@icp:/opt/ibm-cloud-private-ce-2.1.0.2]$ sudo docker run -e LICENSE=accept -v "$(pwd)":/data ibmcom/icp-inception:2.1.0.2 cp -r cluster /data
Create RSA key:
[root@icp:~]# ssh-keygen -b 4096 -f ~/.ssh/id_rsa -N ""
[root@icp:~]# cat ~/.ssh/id_rsa.pub | sudo tee -a ~/.ssh/authorized_keys
[root@icp:/opt/ibm-cloud-private-ce-2.1.0.2]# cp /root/.ssh/id_rsa ./cluster/ssh_key
Add ansible hosts:
[ahmed@icp:/opt/ibm-cloud-private-ce-2.1.0.2]$ sudo vim cluster/hosts
'
[master]
192.168.17.77
[worker]
192.168.17.77
[proxy]
192.168.17.77
'
Modified in configure file of ICP cluster:
[ahmed@icp:/opt/ibm-cloud-private-ce-2.1.0.2]$ sudo vi cluster/config.yaml
calico_ip_autodetection_method: interface=ens160
kibana_install: true
Install ICP Cluster:
[ahmed@icp:/opt/ibm-cloud-private-ce-2.1.0.2]$ sudo docker run --net=host -t -e LICENSE=accept -v "$(pwd)":/installer/cluster ibmcom/icp-inception:2.1.0.2 install
PLAY RECAP **************************************************************************************************************************
192.168.17.77 : ok=221 changed=71 unreachable=0 failed=0
localhost : ok=182 changed=114 unreachable=0 failed=0
POST DEPLOY MESSAGE *****************************************************************************************************************
The Dashboard URL: https://192.168.17.77:8443, default username/password is admin/admin
Playbook run took 0 days, 0 hours, 19 minutes, 57 seconds
Good Luck
https://www.linkedin.com/in/ahmedms/
Comments
Post a Comment