The minimum requirements for openshift origin (OKD) 3.11 is at least 16GB memory, but since my machine does not have that much capacity, I just use 8GB memory, and exclude all hardware checks in my inventory file
For openshift installation to run smoothly, you need a proper, separate DNS server. Refer to my previous post, on how to setup a very easy DNS server. The DNS can be installed in another VM with probably 512MB memory.
Prepare a VM, with:
- 8GB memory
- 50GB hardisk
- 1 vcpu
- bridged network
Install centos 7 on the VM
Since we are going to use ansible, passwordless ssh is necessary, even though it is just only one machine
# ssh-keygen
# ssh-copy-id localhost
Update the operating system, and install base packages
# yum update -y; yum install wget git net-tools bind-utils yum-utils iptables-services bridge-utils bash-completion kexec-tools sos psacct -y; reboot
Install epel repository, and disable the repo by default
# yum install -y epel-release; sed -i 's/enabled=1/enabled=0/' /etc/yum/repos.d/epel.repo
Install ansible and pyOpenSSL
# yum install -y --enablerepo=epel ansible pyOpenSSL
Install docker
# yum install -y docker-1.13.1
Install, enable and restart NetworkManager
# cd
# git clone https://github.com/openshift/openshift-ansible
# cd openshift-ansible
# git checkout release-3.11
# cd ~/openshift-ansible
# ansible-playbook -i inventory.ini playbooks/prerequisites.yml
Run the deployment playbook to deploy your openshift cluster
# ansible-playbook -i inventory.ini playbooks/deploy_cluster.yml
Once installation is complete, verify your installation by checking on the nodes
# oc get nodes
and logging in to openshift webconsole which in this case is https://console.local.my:8443, providing the username and password as per in your inventory.ini file
No comments:
Post a Comment